Click here to Skip to main content
15,889,216 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Singleton ? Pin
Jun Du21-Jun-06 6:03
Jun Du21-Jun-06 6:03 
GeneralRe: Singleton ? Pin
Felipe Dalorzo22-Jun-06 6:32
Felipe Dalorzo22-Jun-06 6:32 
QuestionAdding Controls Dynamically,but not accessing [modified] Pin
Nagaraju_Focus20-Jun-06 0:54
Nagaraju_Focus20-Jun-06 0:54 
AnswerRe: Adding Controls Dynamically,but not accessing Pin
Josh Smith21-Jun-06 4:13
Josh Smith21-Jun-06 4:13 
GeneralRe: Adding Controls Dynamically,but not accessing Pin
Nagaraju_Focus22-Jun-06 0:41
Nagaraju_Focus22-Jun-06 0:41 
Questiondatabase accessing Pin
Nagraju19-Jun-06 23:03
Nagraju19-Jun-06 23:03 
AnswerRe: database accessing Pin
Vasudevan Deepak Kumar19-Jun-06 23:10
Vasudevan Deepak Kumar19-Jun-06 23:10 
QuestionMultiplatform (32bits/64bits/CE) & Interop Pin
Super Lloyd19-Jun-06 16:16
Super Lloyd19-Jun-06 16:16 
If I write a pure C# application, only using the standart publi API, no interop, the same binary should work well on32 bit, 64 bits and perhaps on the compact framework as well if I link against it.

Now how could I achieve the same thing if I do interop and I have a managed C++ API?

let say I have a managed C++ module compiled for 3 different target but with always the same interface:
mycppmodule32.dll
mycppmodule64.dll
mycppmoduleCE.dll

let say in the C# code I also do some interop
internal class User32 // & CE ?!
{
[DllImport("USER32")]
public IntPtr GetHdc(IntPtr hWnd); // 4 byte IntPtr
}
internal class User64 // not sure it exists, but I assume....
{
[DllImport("USER64")]
public IntPtr GetHdc(IntPtr hWnd); // 8 byte IntPtr
}


Let suppose these DLLs are included as modules in my csharpdll.dll.

Now if I deploy all these DLLs, how could write a simple nice code in my C# dll which internally target whatever native lib is appropriate?
Is it possible (to keep it simple)?

Questionc# in .net Pin
tom laz19-Jun-06 10:21
tom laz19-Jun-06 10:21 
AnswerRe: c# in .net Pin
Ed.Poore19-Jun-06 11:08
Ed.Poore19-Jun-06 11:08 
GeneralRe: c# in .net Pin
tom laz19-Jun-06 11:12
tom laz19-Jun-06 11:12 
GeneralRe: c# in .net Pin
Ed.Poore19-Jun-06 12:31
Ed.Poore19-Jun-06 12:31 
Question.NET Framework - Restarting Framework Pin
Jawz-X19-Jun-06 9:17
Jawz-X19-Jun-06 9:17 
AnswerRe: .NET Framework - Restarting Framework Pin
Sebastien Lachance19-Jun-06 9:49
Sebastien Lachance19-Jun-06 9:49 
GeneralRe: .NET Framework - Restarting Framework Pin
Jawz-X22-Jun-06 5:20
Jawz-X22-Jun-06 5:20 
AnswerRe: .NET Framework - Restarting Framework Pin
Josh Smith19-Jun-06 9:59
Josh Smith19-Jun-06 9:59 
AnswerRe: .NET Framework - Restarting Framework Pin
Yogesh Kshatriya19-Jun-06 17:10
Yogesh Kshatriya19-Jun-06 17:10 
QuestionRe: .NET Framework - Restarting Framework Pin
Jun Du21-Jun-06 5:20
Jun Du21-Jun-06 5:20 
AnswerRe: .NET Framework - Restarting Framework Pin
Jawz-X22-Jun-06 5:18
Jawz-X22-Jun-06 5:18 
GeneralRe: .NET Framework - Restarting Framework Pin
Jun Du22-Jun-06 5:34
Jun Du22-Jun-06 5:34 
QuestionAdd reference Pin
VK-Cadec19-Jun-06 2:33
VK-Cadec19-Jun-06 2:33 
AnswerRe: Add reference Pin
Dave Kreskowiak19-Jun-06 3:45
mveDave Kreskowiak19-Jun-06 3:45 
Questionsecurity problem when writing to windows application log Pin
Rob 1234516-Jun-06 14:35
Rob 1234516-Jun-06 14:35 
AnswerRe: security problem when writing to windows application log Pin
progload17-Jun-06 15:48
progload17-Jun-06 15:48 
GeneralRe: security problem when writing to windows application log Pin
Rob 1234518-Jun-06 16:52
Rob 1234518-Jun-06 16:52 

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.