Click here to Skip to main content
15,884,790 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regenerate Print Preview Pin
hxxbin26-Apr-04 4:14
hxxbin26-Apr-04 4:14 
GeneralMultiple childs of MDI form Pin
turist6923-Apr-04 7:03
turist6923-Apr-04 7:03 
GeneralRe: Multiple childs of MDI form Pin
Heath Stewart23-Apr-04 7:21
protectorHeath Stewart23-Apr-04 7:21 
GeneralRe: Multiple childs of MDI form Pin
turist6923-Apr-04 8:00
turist6923-Apr-04 8:00 
GeneralAppDomain.DomainUnload never fired automatically Pin
VizOne23-Apr-04 6:16
VizOne23-Apr-04 6:16 
GeneralRe: AppDomain.DomainUnload never fired automatically Pin
leppie23-Apr-04 7:00
leppie23-Apr-04 7:00 
GeneralRe: AppDomain.DomainUnload never fired automatically Pin
VizOne25-Apr-04 8:30
VizOne25-Apr-04 8:30 
GeneralP/Invoke and strings Pin
Dominik Reichl23-Apr-04 6:04
Dominik Reichl23-Apr-04 6:04 
Hi!

On www.pinvoke.net I've read this:
[DllImport("shell32.dll")]<br />
static extern IntPtr ShellExecute(IntPtr hwnd, string lpVerb, string lpFile, string lpParameters, string lpDirectory, int nShowCmd);


And now I wonder:
1) does this work? "ShellExecute" doesn't exist in shell32.dll, only ShellExecuteA and ShellExecuteW.
2) If it works: which one (A/W) will .net choose?

So we come directly to the second question: the "string" type. Is this type a Unicode or ANSI string? Is the type dependent on the system the .net interpreter runs on (i.e. on Win98 it would be ANSI, on WinXP Unicode) ?

What I wonder too: what if we want to use a function like GetWindowsDirectory? This function wants a pointer to a string buffer which will receive the string. Well, now in C# we just declare "string s", without specifying any size of the buffer... Any way to allocate a string which can hold a specific amount of characters we can define manually?

If you know an excellent page on C# strings, please tell me Smile | :)

Thanks in advance and best regards,
Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)
(doesn't work on NT)

GeneralRe: P/Invoke and strings Pin
Heath Stewart23-Apr-04 6:11
protectorHeath Stewart23-Apr-04 6:11 
QuestionMultithreaded shared remote object ? Pin
Gangren23-Apr-04 5:50
Gangren23-Apr-04 5:50 
AnswerRe: Multithreaded shared remote object ? Pin
Heath Stewart23-Apr-04 6:14
protectorHeath Stewart23-Apr-04 6:14 
GeneralRe: Multithreaded shared remote object ? Pin
Gangren23-Apr-04 6:24
Gangren23-Apr-04 6:24 
GeneralRe: Multithreaded shared remote object ? Pin
Heath Stewart23-Apr-04 6:35
protectorHeath Stewart23-Apr-04 6:35 
GeneralRe: Multithreaded shared remote object ? Pin
Tom Larsen23-Apr-04 10:06
Tom Larsen23-Apr-04 10:06 
GeneralRe: Multithreaded shared remote object ? Pin
Gangren23-Apr-04 12:59
Gangren23-Apr-04 12:59 
GeneralRe: Multithreaded shared remote object ? Pin
Tom Larsen29-Apr-04 11:07
Tom Larsen29-Apr-04 11:07 
GeneralRe: Multithreaded shared remote object ? Pin
Gangren29-Apr-04 11:22
Gangren29-Apr-04 11:22 
AnswerRe: Multithreaded shared remote object ? Pin
Gangren27-Apr-04 20:00
Gangren27-Apr-04 20:00 
GeneralPrint Preview Pin
GoodQuestion23-Apr-04 5:18
GoodQuestion23-Apr-04 5:18 
GeneralRe: Print Preview Pin
Heath Stewart23-Apr-04 6:09
protectorHeath Stewart23-Apr-04 6:09 
GeneralRe: Print Preview Pin
GoodQuestion27-Apr-04 11:21
GoodQuestion27-Apr-04 11:21 
GeneralDataGrids used for simple data Pin
Jon G23-Apr-04 4:45
Jon G23-Apr-04 4:45 
GeneralRe: DataGrids used for simple data Pin
Heath Stewart23-Apr-04 5:33
protectorHeath Stewart23-Apr-04 5:33 
QuestionHow do you bind data to a CheckedListBox? Pin
inyoursadachine23-Apr-04 4:37
inyoursadachine23-Apr-04 4:37 
AnswerRe: How do you bind data to a CheckedListBox? Pin
Heath Stewart23-Apr-04 5:28
protectorHeath Stewart23-Apr-04 5:28 

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.