Click here to Skip to main content
16,006,749 members
Home / Discussions / C#
   

C#

 
GeneralRe: Redistry Emulator Pin
joejoeiscool3-Jan-07 7:00
joejoeiscool3-Jan-07 7:00 
QuestionHide Name Pin
Tanuja1232-Jan-07 4:52
Tanuja1232-Jan-07 4:52 
AnswerRe: Hide Name Pin
Judah Gabriel Himango2-Jan-07 5:27
sponsorJudah Gabriel Himango2-Jan-07 5:27 
AnswerRe: Hide Name Pin
Ed.Poore2-Jan-07 6:07
Ed.Poore2-Jan-07 6:07 
QuestionCreating hidden window [modified] Pin
mikker_1232-Jan-07 4:47
mikker_1232-Jan-07 4:47 
AnswerRe: Creating hidden window Pin
Luc Pattyn2-Jan-07 7:27
sitebuilderLuc Pattyn2-Jan-07 7:27 
GeneralRe: Creating hidden window [modified] Pin
mikker_1232-Jan-07 11:39
mikker_1232-Jan-07 11:39 
GeneralRe: Creating hidden window Pin
Luc Pattyn2-Jan-07 14:14
sitebuilderLuc Pattyn2-Jan-07 14:14 
I need more info to form an opinion on this.
Is 1400 hex or decimal ?
is it exactly my code that reports "handle=00000000" and "last error=00001400" ??
Please provide exact code and output.
What is your OS (winXP ? any service pack ?) and .NET version (1.1, 2.0 ? any
service pack?)

Furthermore, I have some ideas.

Idea 1:

I am not sure, maybe it is necessary to prefix my code by the following:

SetLastError(0);


together with the declaration:

[DllImport("kernel32.dll", CallingConvention=CallingConvention.StdCall)] 
private static extern int SetLastError(int err);

Rationale: a lot of system calls change the "last error" value only when something
goes wrong, but don't clear it beforehand. This is what SetLastError(0) is about.
(So it may have been set by CreateWindow or any call executed earlier).


Idea 2:

there might be a problem with the className/windowName arguments (ASCII/Unicode
confusion). If so, this could be fixed by specifying CharSet=CharSet.ASCII or Unicode
inside the DllImport line of CreateWindowEx declaration, and/or by changing
the EntryPoint to either CreateWindowExA or CreateWindowExW.


Smile | :)


Luc Pattyn

GeneralRe: Creating hidden window Pin
mikker_1232-Jan-07 21:11
mikker_1232-Jan-07 21:11 
GeneralRe: Creating hidden window Pin
Luc Pattyn3-Jan-07 3:33
sitebuilderLuc Pattyn3-Jan-07 3:33 
GeneralRe: Creating hidden window Pin
mikker_1233-Jan-07 9:17
mikker_1233-Jan-07 9:17 
GeneralRe: Creating hidden window Pin
Luc Pattyn3-Jan-07 9:57
sitebuilderLuc Pattyn3-Jan-07 9:57 
GeneralRe: Creating hidden window Pin
mmf8-Oct-08 0:18
mmf8-Oct-08 0:18 
QuestionHow would i go about inheriting System.IO.FileStream? [modified] Pin
Anthony Mushrow2-Jan-07 4:42
professionalAnthony Mushrow2-Jan-07 4:42 
AnswerRe: How would i go about inheriting System.IO.FileStream? Pin
Judah Gabriel Himango2-Jan-07 5:21
sponsorJudah Gabriel Himango2-Jan-07 5:21 
QuestionWordwrapping when printing Pin
numbers1thru92-Jan-07 3:49
numbers1thru92-Jan-07 3:49 
AnswerRe: Wordwrapping when printing Pin
Luc Pattyn2-Jan-07 16:02
sitebuilderLuc Pattyn2-Jan-07 16:02 
QuestionCustomising the Color of check mark in a checkedListBox Pin
Sreelakshmi Desai2-Jan-07 3:43
Sreelakshmi Desai2-Jan-07 3:43 
QuestionDataGridView Pin
robmays2-Jan-07 3:18
robmays2-Jan-07 3:18 
AnswerRe: DataGridView Pin
mwith2-Jan-07 5:59
mwith2-Jan-07 5:59 
Questionlandscape vs portrait Pin
quiteSmart2-Jan-07 2:32
quiteSmart2-Jan-07 2:32 
AnswerRe: landscape vs portrait Pin
Luc Pattyn2-Jan-07 3:03
sitebuilderLuc Pattyn2-Jan-07 3:03 
QuestionPrinting in C# Pin
numbers1thru92-Jan-07 1:44
numbers1thru92-Jan-07 1:44 
AnswerRe: Printing in C# Pin
Mircea Puiu2-Jan-07 2:10
Mircea Puiu2-Jan-07 2:10 
QuestionMaking a full-screen windows application. Pin
Hussam Fattahi2-Jan-07 0:51
Hussam Fattahi2-Jan-07 0:51 

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.