-
- System.OutOfMemoryException
by AlexBB
- 6 Replies
- Last post
by Peter Ritchie
- I download a stream of records as I type this note. They are punctuated by some other records. In short it is a batch of about of 265 streams. Twice in the process I get the OutOfMemoryException.
It is not the first time. When it happened before I did not have a try/catch block around the code and had to abort. Now it just goes aroung it. It is a nuisance code: a timer that gives me conveni
-
- changing table names
by Can-Ann
- 14 Replies
- Last post
by Andrej Tozon
- I have a bound dataset, with tables (2000,2001,2002,2003 etc).
all these tables are the same, just different names. Because these names will change over time I want to be able to add them within the program.
If I design the form around the table 2000, can I change it to display the information from table 2003.
The table 2000 would have a tableadapter and bindingsource.
If this is possi
-
- Encrypt/Decrypt Image File as Text for SMS Sending
by Kihat
- 5 Replies
- Last post
by Kihat
- Hi! We need to use MMS to send image file. Can it be done by encrypting the image into some text format and send it as SMS How to do it I need to write an application which will send image using SMS to mobile user. After the mobile receiving the SMS, how to trigger my software to do the decryption Any way to do so Please advise. Thanks in advance.
-
- byte* to byte[]
by Lawrence Kok
- 2 Replies
- Last post
by Lawrence Kok
- Goodmorning all, For on of my newest creations i'm looking for a way to reverse the fixed statement. Here's the background. I've create a Unmanaged C++ dll which. Now in that dll i have a function which calls a C# delegate. Now the basic storyline is: I set a callback to c# function, C++ dll call that method to e.d. let know a buffer needs to be filled, or is filled and needs to get flushed. My C#
-
- constant fields
by CoverPpl
- 1 Replies
- Last post
by Kenny99
- i want to put all of my constant fields together so it will be possible to get there values from anywhere in the application.
i know in c++ the solution is to create a header file , but what about c#
thanks in advanced.
-
- Image transfer
by akshah
- 7 Replies
- Last post
by Mark Dawson
- I am new to C#.
I have to develop a simple client server application that takes screenshot (print sceen) of the client's desktop and just sends it to the server continuously every 3 seconds.
Can anybody develop a sample appln and help me out.
Thnx in advance for any help
-
- which is the best way to desgin a bussiness model, class or struct?
by sharpMoon
- 10 Replies
- Last post
by sharpMoon
- i develop a B/S project which include below: WEB - web project - UI BLL - class library - Business Logic DAL - class libaray - Data Access Model - class library - Business Model when i design the business model, for example BookInfo, i am confused for create it with class BookInfo or struct BookInfo. who can give me a guide thx in adv
-
- Double Precision Issue in C#.net 2005
by fongye
- 13 Replies
- Last post
by sirjis
- Hi,
I'm having problem with the C# double precision issue.
When i run the equation below, i get the result
8183.23 - 6695.37 = 1487.8599999999997
why i can not get 1487.86
when i convert the double variable to string and show in the message box, it round to the correct figure i want.
double i = Convert.ToDouble(dr["Qty"]) - Convert.ToDoulbe
-
- Programs won't open or run
by Fallen Empires- Petros
- 10 Replies
- Last post
by IsshouFuuraibou
- I made a new project and when i click debug it opens then closes. I tried to make another one with just a button on it. Same thing happend. I opened an older project(only about a week) and it opens and runs fine. How can i fix this
-
- Formatting Question: Format a SQL Server 2005 binary field the way the data appears in Query Analyzer.
by Corby111
- 3 Replies
- Last post
by Corby111
- If this is not the right forum for this post could someone please tell me where to post.
I have a field in SQL Server 2005 varbinary(max). The field holds zip files that are installs for my software.
I am querying to get the data,
When I read in the binary data, and then copy the text to the clipboard the data appears like shown below:
154176486564000128624811651118492
-
- Problem with DwmExtendFrameIntoClientArea
by Mateusz Rajca
- 0 Replies
- Last post
by Mateusz Rajca
- Hi!
Im trying to use DwmExtendFrameIntoClientArea in a Win32 application and here is the code:
MARGINS margins = {20,20,20,20};
DwmExtendFrameIntoClientArea(hWnd,&margins);
But when I compile I get:
Error 1 error LNK2019: unresolved external symbol __imp__DwmExtendFrameIntoClientArea@8 referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" ( I
-
- Is this really that hard??
by David_Wright
- 12 Replies
- Last post
by David_Wright
- All I want to do is re-get the value of a string every so often (say 5 mins). I don't want anything writing to a Form or a Console line, I just want the string value to be updated every so often. Is this really so hard to do Am I looking to do something impossible I had thought that this might be relatively simple, but obviously this is really hard to do in C#
-
- run every one minute
by DioNNiS
- 12 Replies
- Last post
by Figo Fei - MSFT
- How I can do that consol aplication do some function every one minute
-
- Code conversion C to C# problem with bitwise << shift
by Les In SA
- 2 Replies
- Last post
by Mark Dawson
- Please could someone tell me why the following code snippet in C# produces an error "cannot implicitly convert type 'int' to 'ushort' " on the bolded line
public ushort [] table = new ushort [256];
public ushort XMODEMcrc( byte byt, ushort crc)
{
crc = (crc << 8) ^ table[byt ^ (crc >> 8)];
return crc;
}
This exact code works in C. I don
-
- Find active user under Fast User Switching
by Dave Midgley
- 2 Replies
- Last post
by Dave Midgley
- Can anyone tell me the best way for a service to find the current active user under fast user switching. The method should work under W2K as well as XP so WTSQueryUserToken is no good. I'm developing with c#.NET 2.0.
-
- how do i make a datetime constant?
by JDPeckham
- 12 Replies
- Last post
by JDPeckham
- i need to put a constant date time in an attribute parameter, how do i make a constant datetime
-
- Starting a Process on another Computer
by Trish
- 2 Replies
- Last post
by LukeSkywalker
- Is it possible to start a process on another computer
I know I can get the processes running on another computer.
Process .GetProcessesByName(ProcessName,ServerName)
But can I actually start a process on another server
Thanks,
Trish
-
- protected internal
by learningcsharp
- 7 Replies
- Last post
by decyclone
- access modifier
1)protected erived class can access
2)internal:available within the assembly
but what is this protected internal, dont give me any url here i have the stuff but did not get the point
-
- Thanks !!
by Milton Brise&#38;&
- 2 Replies
- Last post
by Martin Xie - MSFT
- Sorry but I read all about COM Exposing but I have a problem....
My code looks like:
namespace VendingCOM
{
[ ComVisible ( true )]
[ ProgId ( "VendingCOM.Vending" )]
[ ClassInterface ( ClassInterfaceType .AutoDispatch)]
[ ComSourceInterfaces ( typeof ( IVendingEvents ) )]
public partial class Vending : UserControl
{
private string _puerto;
-
- Is there API for dynamically evaluating expressions?
by Martin Ortiz
- 1 Replies
- Last post
by OmegaMan
- I have seen this done before with VB script....
At any rate, is there a way to evaluate dynamically created logical expressions
say I my expression can contain 3 boolean variables
these 3 variables exist in real code (plus 4th result variable)
bool a;
bool b;
bool c;
bool result;
and I'm passed this string...
"result = (a | b) & (!c)"
-
- Execute prcocess with unicode arguments
by Shilpa Nagavara
- 1 Replies
- Last post
by Figo Fei - MSFT
- Hi,
I am using the System.Diagnostics.Process class to run a java exe file. The exe takes file name as a paramter/argument. This works perfectly fine of English Windows OS. However, when I run the same on Japanese OS, the file name contains Japanese characters. It displays the file name correctly until process.start() is called. However, in the java exe, the japanese characters are junk.
-
- C# Encryption methods.
by John-28
- 1 Replies
- Last post
by OmegaMan
- Hello, I have recently accepted a project that performs secure encryption/decryption for large and small amounts of data. The customer has specified the use of a 512-bit asymmetric algorithm. From research that I have done, it seems that asymmetry would not be a viable option for files larger than 1kb, which leaves the question of should I just use a symmetric algorythm By design, the key has to
-
- VS2005 Add Reference
by DrAske
- 5 Replies
- Last post
by Chunsheng Tang - MSFT
- Hi Experts .. When attempting to add reference to a dll (using Add Reference dialog in Solution Explorer), VS2005 displays a bug dialog box, and then restart. what is this currently, I am using .csproj file to add dll reference, but I want to fix this problem, could anyone help me please
-
- Interop Declarations problem
by m0
- 1 Replies
- Last post
by TaylorMichaelL
- Hello, In my c/c++ header file there exists these parameters. /* ErrorCode */ extern __declspec(dllimport) char * HL_ADAPTIVE_VIEWPORT; extern __declspec(dllimport) char * HL_BACK; extern __declspec(dllimport) char * HL_BUTTON1_STATE; extern __declspec(dllimport) char * HL_BUTTON2_STATE; [DllImport("hl", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)] public stati
-
- ctrl-tab functionality
by VooDoo Chicken
- 6 Replies
- Last post
by VooDoo Chicken
- hi, how do you build the crtl tab functionality from c# (or at least calling native api from c#). i know how to retrieve active windows list (more or less), but i dont know how to successfully focus a specific window, specially if that window runs full screen, like i would do with crtl-tab with no problem