MC++ controls
-
Hello, This is with regard to writing Forms controls using MC++. Has anyone made any? If so, what extra steps did they have to take? Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Hello, This is with regard to writing Forms controls using MC++. Has anyone made any? If so, what extra steps did they have to take? Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
These are the steps I have done right now :- #using "..\testcontrol\Debug\testcontrol.dll" .... using namespace testcontrol; .... Then I have a member in my class as follows :- Class1 *m_c; This is all okay. Now if I do this anywhere :- m_c = new Class1(); I get this exception when I run it :- System.IO.FileNotFoundException Blast!!!! It found the file alright!!! Else how would it even compile properly :-(
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
These are the steps I have done right now :- #using "..\testcontrol\Debug\testcontrol.dll" .... using namespace testcontrol; .... Then I have a member in my class as follows :- Class1 *m_c; This is all okay. Now if I do this anywhere :- m_c = new Class1(); I get this exception when I run it :- System.IO.FileNotFoundException Blast!!!! It found the file alright!!! Else how would it even compile properly :-(
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
Place testcontrol.dll in the output directory of the application which you are building.
-
Just did that Rama :-) Sucks huh? I thought the #using would tell the blasted compiler to tell the blasted linker to look for it there :-) Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
It's all assembly search policy. I dream to write an article on that. You should be glad that you are not writing the client app in C# in that case there are more interesting issues involoved - C# with MC++.
-
These are the steps I have done right now :- #using "..\testcontrol\Debug\testcontrol.dll" .... using namespace testcontrol; .... Then I have a member in my class as follows :- Class1 *m_c; This is all okay. Now if I do this anywhere :- m_c = new Class1(); I get this exception when I run it :- System.IO.FileNotFoundException Blast!!!! It found the file alright!!! Else how would it even compile properly :-(
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
Blasted DLL has to be in the same folder as the EXE :-( Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Place testcontrol.dll in the output directory of the application which you are building.
Just did that Rama :-) Sucks huh? I thought the #using would tell the blasted compiler to tell the blasted linker to look for it there :-) Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Blasted DLL has to be in the same folder as the EXE :-( Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
Nish, I use MC++ for all the projects and C# for Windows forms. Now when I use the C# DLL I need to make sure the DLL is in the compilers path and the exe path. I just change the output folder. X|
-
Nish, I use MC++ for all the projects and C# for Windows forms. Now when I use the C# DLL I need to make sure the DLL is in the compilers path and the exe path. I just change the output folder. X|
Albert Pascual wrote: Now when I use the C# DLL I need to make sure the DLL is in the compilers path and the exe path. I just change the output folder Yeah, sorta sucks!!! Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
It's all assembly search policy. I dream to write an article on that. You should be glad that you are not writing the client app in C# in that case there are more interesting issues involoved - C# with MC++.
Rama Krishna wrote: You should be glad that you are not writing the client app in C# in that case there are more interesting issues involoved - C# with MC++. Not so glad anymore... Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.