Click here to Skip to main content
15,897,315 members
Home / Discussions / C#
   

C#

 
GeneralRe: Updating Datagrid Cell Value Pin
wiseylondon31-Aug-05 22:20
susswiseylondon31-Aug-05 22:20 
GeneralRe: Updating Datagrid Cell Value Pin
mav.northwind31-Aug-05 22:56
mav.northwind31-Aug-05 22:56 
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 
I have successfully called a Fortran dll from unmanaged C++ and now I'm trying this in C#.

This is my attempt:

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


The dll merely squares the number and sends it back out. The error message is System.DllNotFoundException. I think the reason is that I'm not able to add reference. It keeps saying that it's not a valid .COM or .dll !
Suggestions greatly welcomed.
Kash
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 
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 

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.