Click here to Skip to main content
15,915,509 members
Home / Discussions / C#
   

C#

 
GeneralRe: Updating Datagrid Cell Value Pin
wiseylondon1-Sep-05 0:02
susswiseylondon1-Sep-05 0:02 
Questionc++ codeparser Pin
profoundwhispers31-Aug-05 5:00
profoundwhispers31-Aug-05 5:00 
AnswerRe: c++ codeparser Pin
Alomgir Miah31-Aug-05 6:59
Alomgir Miah31-Aug-05 6:59 
AnswerRe: c++ codeparser Pin
S. Senthil Kumar31-Aug-05 7:48
S. Senthil Kumar31-Aug-05 7:48 
AnswerRe: c++ codeparser Pin
VickyC#3-Sep-05 10:29
VickyC#3-Sep-05 10:29 
QuestionAdd reference problem ? Pin
Kash31-Aug-05 4:41
Kash31-Aug-05 4:41 
AnswerRe: Add reference problem ? Pin
Alomgir Miah31-Aug-05 7:02
Alomgir Miah31-Aug-05 7:02 
GeneralRe: Add reference problem ? Pin
Kash31-Aug-05 7:12
Kash31-Aug-05 7:12 
I managed to get it to work by putting the .lib and .dll file in bin\Release folder but now I have some new problems.

This works to an extent.
The number goes in OK, and does the calc inside the dll correctly but the new number is not sent back. I tried both "out" and "ref" declarations.

	class MyClass<br />
	{<br />
		[DllImport(@"square.dll", EntryPoint="aFunc")]<br />
		<br />
		public static extern void aFunc(float aNum);<br />
<br />
		public static int Main() <br />
		{<br />
			float aNum=20.0F;<br />
			aFunc(aNum);<br />
			Console.WriteLine(aNum);<br />
			return 0;<br />
		}<br />
	}<br />
}

GeneralRe: Add reference problem ? Pin
Dave Kreskowiak31-Aug-05 10:08
mveDave Kreskowiak31-Aug-05 10:08 
GeneralRe: Add reference problem ? Pin
Kash31-Aug-05 23:34
Kash31-Aug-05 23:34 
GeneralRe: Add reference problem ? Pin
Dave Kreskowiak1-Sep-05 1:33
mveDave Kreskowiak1-Sep-05 1:33 
GeneralRe: Add reference problem ? Pin
Kash1-Sep-05 1:46
Kash1-Sep-05 1:46 
Questionremote database connection question Pin
theStorminMormon31-Aug-05 4:39
theStorminMormon31-Aug-05 4:39 
Answermy code doesn't really have smileys in it Pin
theStorminMormon31-Aug-05 4:42
theStorminMormon31-Aug-05 4:42 
AnswerRe: remote database connection question Pin
Susan Hernandez31-Aug-05 14:08
Susan Hernandez31-Aug-05 14:08 
GeneralRe: remote database connection question Pin
theStorminMormon31-Aug-05 14:44
theStorminMormon31-Aug-05 14:44 
AnswerRe: remote database connection question Pin
Susan Hernandez31-Aug-05 15:09
Susan Hernandez31-Aug-05 15:09 
Generalcan't find Enterprise Manager Pin
theStorminMormon1-Sep-05 2:08
theStorminMormon1-Sep-05 2:08 
GeneralRe: can't find Enterprise Manager Pin
Susan Hernandez1-Sep-05 5:32
Susan Hernandez1-Sep-05 5:32 
GeneralRe: can't find Enterprise Manager Pin
theStorminMormon1-Sep-05 6:07
theStorminMormon1-Sep-05 6:07 
GeneralRe: can't find Enterprise Manager Pin
Susan Hernandez1-Sep-05 5:36
Susan Hernandez1-Sep-05 5:36 
GeneralRe: can't find Enterprise Manager Pin
theStorminMormon1-Sep-05 6:10
theStorminMormon1-Sep-05 6:10 
GeneralRe: remote database connection question Pin
Susan Hernandez31-Aug-05 15:20
Susan Hernandez31-Aug-05 15:20 
GeneralRe: remote database connection question Pin
theStorminMormon1-Sep-05 1:37
theStorminMormon1-Sep-05 1:37 
AnswerMore info on MSDE Pin
Susan Hernandez1-Sep-05 7:35
Susan Hernandez1-Sep-05 7:35 

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.