Type: Posts; User: CJ1
Search took 0.02 seconds.
November 1st, 2007, 12:28 PM
Assuming C++/CLI (i.e. VS 2005 or later, otherwise upgrade) the wuestion is what managed thing do you wish to pass in "void *" ?
C++/CLI: void Mfunc1 (System::Int32 length, System::Object^ thing)...
November 1st, 2007, 11:52 AM
Your code is not clear. If name is a native char * then you need to convert from String back to char * like this:
char* str2 = (char*)(void*)Marshal::StringToHGlobalAnsi(managedString); ...
November 1st, 2007, 10:28 AM
Or, in the real world you might use Array.Sort, but if this is an assignment you'll get an F for that solution.
November 1st, 2007, 10:09 AM
There is a good example in the TripleDESCryptoServiceProvider Class on MSDN (TripleDESCryptoServiceProvider Help) which is the wrapper class for TrippleDES.
October 31st, 2007, 01:35 PM
I have an application that uses C# as the script language. The C# is compiled on the fly from within the application and executed.
I would like to be able to allow the user to debug their C# code...
September 22nd, 2005, 06:06 PM
I am working with a mix of C# and Managed C++ in my project.
I need to know what the syntax is to overload the  operator.
My class derrives from System::ArrayList. The documents say that the...
July 20th, 2005, 01:06 PM
You really don't want to start messing around with static members in the end you will end up with more problems than you will solve.
As for saving memory this is false, it will not matter if you...
July 20th, 2005, 12:35 PM
Yes all true, in fact you can do object oriented programming in assembler if you want when you start with a clean slate.
In this case we are talking about working on existing C code for an...
July 13th, 2005, 06:26 PM
In a nutshell C is all about pointers and memory management (IMHO), if you feel comfortable with pointers you are well on your way.
C is really one step above assembler (IMHO), the language...
September 9th, 2004, 09:42 AM
I'm sorry I was in error on the static part, it IS required (that's what you get when you answer from memory only).
I have only used this in one project which used a dll written in C. From what...
September 8th, 2004, 03:57 PM
Sorry, cut-n-paste error, change the modifier to public and remove static. Accessing native DLLs requires that the method is public and it may NOT be static.
If you need anything else, create a...
September 7th, 2004, 03:22 PM
private static extern bool CDataApp.IsOpen();When looking for more information on this search for "PInvoke".
September 7th, 2004, 03:12 PM
From your question I assume you are developing this VC++ DLL, in which case you will need to use the managed VC++ extensions to talk to C# using reflection.
I suggest you read the...
August 27th, 2004, 02:22 PM
I also had this problem with different runtime libraries between my EXE and DLL, the ONLY soultion I found was to make everything Multithreaded DLL (Debug or Release), then everything worked again.
August 27th, 2004, 01:51 PM
We have found that under WIndows NT/2000 you can get 50 ms most of the time, 20 ms generally but the computer needs to be properly setup. Under pure Windows you can expect delays > 1000 ms from time...
August 27th, 2004, 01:41 PM
From what I understand of your requirements, you want the exe to call methods in your DLL and use some data that the other exe has set?
Then use .NET Remoting to talk from application to...
August 24th, 2004, 04:25 PM
You never said if the compiler was MS VC++ (I'll assume yes given the __int64), so here is the quick answer:
fscanf(fp, "%d 0x%16I64X, &id, &move); where id is an int and move is __int64.
August 23rd, 2004, 06:31 PM
I thought that under DCOM you could isolate the DLLs?
I could always go back to launching the DLLs in seperate apps and using shared memory or named pipes to communicate, but I really wanted to...
August 23rd, 2004, 06:06 PM
Could you post the ful code excerpt, I don't see how cResultPtr is declared and initialized?
August 19th, 2004, 05:10 PM
Here is one that I am having trouble with.
I need to load multiple instances of a DLL in my application and have each instance isolated from the others (the DLL has global variables).
August 19th, 2004, 04:58 PM
I agree, BUT I still think C++ is NOT a good first language. Also C# is a better introduction to C++ than C, and it would has the added advantage of protecting the beginner from system crashing...
August 19th, 2004, 04:48 PM
Lets get the basic stuff out of the way first:
using namespace System;
using namespace System::Runtime::InteropServices;
The within your code to go from managed to...
August 19th, 2004, 02:41 PM
Right you are on the precision field, my error. :blush:
As for the quarter, I wouldn't want to guess or assume the intentions.
This point only undelines that C++ is NOT a language for...
August 19th, 2004, 01:14 PM
You better read your manual more carefully and concentrate on the precision fieldthat is how you limit the output size.
Again read the C++ specification, it includes most of C as part of C++ (there...
August 19th, 2004, 12:13 PM
This forum has many new programmers, and NO you are NOT violating the forum rules.VictorN is wrong is saying there is no specific C++ code as all the code you presented was valid C++ code, perhaps it...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.