Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
Questionwindow messages hooking??? Pin
SherKar9-Apr-04 0:47
SherKar9-Apr-04 0:47 
AnswerRe: window messages hooking??? Pin
Mazdak9-Apr-04 0:55
Mazdak9-Apr-04 0:55 
GeneralRe: window messages hooking??? Pin
SherKar9-Apr-04 1:40
SherKar9-Apr-04 1:40 
GeneralRe: window messages hooking??? Pin
Heath Stewart9-Apr-04 3:57
protectorHeath Stewart9-Apr-04 3:57 
GeneralObject Reference Required Pin
thewebmonster9-Apr-04 0:31
thewebmonster9-Apr-04 0:31 
GeneralRe: Object Reference Required Pin
Colin Angus Mackay9-Apr-04 0:47
Colin Angus Mackay9-Apr-04 0:47 
GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 0:50
thewebmonster9-Apr-04 0:50 
GeneralRe: Object Reference Required Pin
Colin Angus Mackay9-Apr-04 1:04
Colin Angus Mackay9-Apr-04 1:04 
Did it compile before? From your description it sounded like a runtime error.

If it is C# Builder that is causing this error then I'm not sure I can help as it sounds like the IDE is broken.

However, it may be the C# builder is giving a slightly different error message than VS.NET. What line of code does it give this error for? Have you tried to use a variable before it is initialised?

e.g.
SqlConnection conn;
conn.ConnectionString = myConnectionString;
Could bring up an error like this because you create a reference to a SqlConnection object, but you don't actual creat an instance of it. You would need to insert the line
conn = new SqlConnection();
in between the two I've given above for it to work.

Watch out for things like this also:
SomeObject someObject;
foreach(SomeObject currentObject in someObjectCollection)
{
    // Code that does stuff, and somewhere there is a...
    someObject = currentObject;
}
because if there is nothing in the collection, someObject could possibly never be initialised and the compiler doesn't like that. The same goes initialisation within any conditional statements. Although it is clever enough if you have construct like if(){...}else{...} with initialisation in both

Does this help?


"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)


GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 1:20
thewebmonster9-Apr-04 1:20 
GeneralRe: Object Reference Required Pin
Colin Angus Mackay9-Apr-04 1:36
Colin Angus Mackay9-Apr-04 1:36 
GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 3:53
thewebmonster9-Apr-04 3:53 
GeneralRe: Object Reference Required Pin
Heath Stewart9-Apr-04 4:01
protectorHeath Stewart9-Apr-04 4:01 
GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 4:03
thewebmonster9-Apr-04 4:03 
GeneralRe: Object Reference Required Pin
Heath Stewart9-Apr-04 4:09
protectorHeath Stewart9-Apr-04 4:09 
GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 4:13
thewebmonster9-Apr-04 4:13 
GeneralRe: Object Reference Required Pin
Michael P Butler9-Apr-04 1:08
Michael P Butler9-Apr-04 1:08 
GeneralRe: Object Reference Required Pin
thewebmonster9-Apr-04 1:21
thewebmonster9-Apr-04 1:21 
GeneralCLients Communication Pin
8-Apr-04 23:08
suss8-Apr-04 23:08 
GeneralRe: CLients Communication Pin
Colin Angus Mackay9-Apr-04 0:38
Colin Angus Mackay9-Apr-04 0:38 
QuestionHow to Import Data from text file to SQL Server Pin
DucLinh8-Apr-04 22:53
DucLinh8-Apr-04 22:53 
GeneralRe: Import data into SQL Server from file text Pin
Michael P Butler8-Apr-04 22:29
Michael P Butler8-Apr-04 22:29 
GeneralMS Messsage Queue Pin
Login GoodSites8-Apr-04 19:38
Login GoodSites8-Apr-04 19:38 
GeneralRe: MS Messsage Queue Pin
Mazdak9-Apr-04 1:56
Mazdak9-Apr-04 1:56 
General.exe but no .dll Pin
Anonymous8-Apr-04 16:59
Anonymous8-Apr-04 16:59 
GeneralRe: .exe but no .dll Pin
Dave Kreskowiak8-Apr-04 17:31
mveDave Kreskowiak8-Apr-04 17:31 

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.