Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drag n drop treeview Nodes between two different applications Pin
Heath Stewart31-Jul-04 5:26
protectorHeath Stewart31-Jul-04 5:26 
GeneralMessage Removed Pin
30-Jul-04 1:01
wibblewibblewibble30-Jul-04 1:01 
GeneralRe: Image Class Problem Pin
Bret Mulvey9-Aug-04 17:54
Bret Mulvey9-Aug-04 17:54 
GeneralWebBrowser's Document Complete event Pin
profoundwhispers29-Jul-04 23:02
profoundwhispers29-Jul-04 23:02 
GeneralRe: WebBrowser's Document Complete event Pin
HiltonG30-Jul-04 2:30
HiltonG30-Jul-04 2:30 
GeneralRe: WebBrowser's Document Complete event Pin
profoundwhispers30-Jul-04 8:33
profoundwhispers30-Jul-04 8:33 
GeneralRe: WebBrowser's Document Complete event Pin
Dave Kreskowiak30-Jul-04 4:27
mveDave Kreskowiak30-Jul-04 4:27 
GeneralInvoking a Win32 DLL from C# Pin
rana7429-Jul-04 23:00
rana7429-Jul-04 23:00 
I have a third party source code in C which i have converted into a win32 dll.
namely have introduced a new entry point to replace main
__declspec(dllexport) int maindllentrypoint(int argc, char* argv[])


Now i try to invoke it from a c# console application
[DllImport
("D:\\.............\\xxxx.dll")]
public static extern int maindllentrypoint(int argc,string[] argv);
class ClsInvokeThirdParty
{
[STAThread]
static void Main(string[] args)
{
string[] prm=new String[]{="xxxx.exe -c d:\\..\\tihrdparty.conf -l d:\\dlllogs.txt"};
ClsInvokeThirdParty.maindllentrypoint(1,prm);
Console.WriteLine ("Press enter to abort ");
Console.ReadLine();
}

}


I get a NullRefernceException-Object reference not set to an instance of an object..
When I debug into the third part code ,I find that the program aborts atthe first pace that argv[0] is being referenced within the dll.

What should I do?
GeneralRe: Invoking a Win32 DLL from C# Pin
Heath Stewart30-Jul-04 5:53
protectorHeath Stewart30-Jul-04 5:53 
GeneralRe: Invoking a Win32 DLL from C# Pin
rana741-Aug-04 16:18
rana741-Aug-04 16:18 
GeneralRe: Invoking a Win32 DLL from C# Pin
Heath Stewart4-Aug-04 5:04
protectorHeath Stewart4-Aug-04 5:04 
Questionhow do i pass null to dateTime variable Pin
robmays29-Jul-04 22:56
robmays29-Jul-04 22:56 
AnswerRe: how do i pass null to dateTime variable Pin
Ryan Roberts30-Jul-04 0:15
Ryan Roberts30-Jul-04 0:15 
GeneralRe: how do i pass null to dateTime variable Pin
robmays30-Jul-04 0:17
robmays30-Jul-04 0:17 
QuestionHow to passing parameters from eVC++ to a running C# program? Pin
ting66829-Jul-04 22:40
ting66829-Jul-04 22:40 
AnswerRe: How to passing parameters from eVC++ to a running C# program? Pin
Heath Stewart30-Jul-04 5:40
protectorHeath Stewart30-Jul-04 5:40 
Questionmatching regex at exact index? Pin
Roger Alsing29-Jul-04 21:44
Roger Alsing29-Jul-04 21:44 
AnswerRe: matching regex at exact index? Pin
Heath Stewart30-Jul-04 4:55
protectorHeath Stewart30-Jul-04 4:55 
GeneralRe: matching regex at exact index? Pin
Roger Alsing30-Jul-04 5:14
Roger Alsing30-Jul-04 5:14 
GeneralRe: matching regex at exact index? Pin
Roger Alsing1-Aug-04 7:25
Roger Alsing1-Aug-04 7:25 
Generalspitter problem Pin
samithas29-Jul-04 19:30
samithas29-Jul-04 19:30 
GeneralRe: spitter problem Pin
Heath Stewart30-Jul-04 4:51
protectorHeath Stewart30-Jul-04 4:51 
GeneralUsing Interop.Outlook problem (Windows Services) Pin
enchanted29-Jul-04 18:37
enchanted29-Jul-04 18:37 
GeneralRe: Using Interop.Outlook problem (Windows Services) Pin
Heath Stewart30-Jul-04 4:41
protectorHeath Stewart30-Jul-04 4:41 
QuestionHas anybody used the control "MagicLibrary" supplied by codeproject? Pin
ILoveCS29-Jul-04 17:41
ILoveCS29-Jul-04 17:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.