Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~9K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums

19 Posted Topics

Member Avatar for nicholasamh

Hi, You probably have something like: [CODE] CSerial serial; serial.Open();[/CODE] And you really do not have a default constructor(no param constructor); so you can't create objects like that. You need to use the constructor you do have: [CODE] CSerial serial("port name goes here"); serial.Open();[/CODE]

Member Avatar for baghere66
0
548
Member Avatar for KungFuTze

My first thought is : use a StudentGrades struct and an array of such structures; it will make the whole thing readable at least :) But let's see what should happen here in the "Ingrade" function ( wierd name by the way ). You say: "// Function that lets user …

Member Avatar for Stephen Ayayo
0
2K
Member Avatar for Dimansu

Just name the server in your data source connection string: "Data Source=SERVER_NAME_GOES_HERE;Initial Catalog=DATABASE_NAME_GOES_HERE; ..."

Member Avatar for sknake
0
90
Member Avatar for NargalaX

Hi, No you can't ! .. and I hope your variable isn't public ! Anyway, I think you misunderstood the event communication concept; the way this works is like this: an object does something ( like changing it's state = "changing a variable") and then it notifies another object ( …

Member Avatar for sknake
0
3K
Member Avatar for pwnz32

Hi, This is not compilable ... Anyway, there's one method of debugging you could try: don't set any breakpoints, but run it in debug (just press F5) And wait for it to get stuck; then go to VS and from the debug menu press pause. Now you should be able …

Member Avatar for wildgoose
0
149
Member Avatar for yun

Hi, Not sure if recursive is your assignment or not, bu if it's not ... you could do a far better job on some of the functions without it. Recursive functions should be used as sparingly as possible as they are extremely slow...

Member Avatar for yun
0
215
Member Avatar for nkarvi

Hi, Why don't you try to do it the old fashion way ... comment out suspect code blocks until it doesn't happen anymore :)

Member Avatar for sknake
0
125
Member Avatar for hassanfaraz

Hi, You could use [CODE]Char.IsLetterOrDigit(keyChar)[/CODE] Maybe this code will help: [ICODE] while(true) { ConsoleKeyInfo keyInfo = Console.ReadKey(true); char keyChar = keyInfo.KeyChar; if (Char.IsLetterOrDigit(keyChar)) Console.WriteLine(keyChar + " is a letter or a digit."); else Console.WriteLine(keyChar + " is a NOT letter NOR a digit."); if (keyInfo.Key == ConsoleKey.Escape) break; }[/ICODE]

Member Avatar for vali82
0
120
Member Avatar for wingwarp

Hi, Not really sure about the posibility of doing this in C#. I've worked a little with filters (whitch are the actual DirectShow components that make up the encoders and decoders), but I used C++ and ATL COMs ... maybe that's what you want ?

Member Avatar for vali82
0
143
Member Avatar for chiraag
Member Avatar for amino0o

You can always typecast to "char*" just use [CODE]reinterpret_cast<char*>(myObject)[/CODE] After that you'll just need to know the exact size that object takes in memory to send it over winsock, try [CODE]sizeof(myObject)[/CODE]

Member Avatar for vali82
0
371
Member Avatar for yakovm

Hi, 1) The best way is for you NOT to depend on the order of the object in the vector; If you ABSOLUTELY MUST depend on their order, keep pointers to object in the vector and delete the object + replace it in the vector with NULL; that is, don't …

Member Avatar for StuXYZ
0
333
Member Avatar for meghaljani
Member Avatar for vali82
0
115
Member Avatar for KungFuTze

First of all you have an interesting problem here: [CODE]else if (hours <= 50) ; salary = (1.25 * rate * (hours - 40) + rate *40); // else ( salary > 50) // [/CODE] Notice the ";" after [CODE]else if (hours <= 50) ;[/CODE] That's wrong :) That's why …

Member Avatar for KungFuTze
0
160
Member Avatar for KungFuTze

Hi, See if this works for you: [CODE]const double MIN_CELSIUS = -273.15; double dCel = 0, dFah = 0; // user inputs temp then it's converted to Fahrenheit do { if(dCel < MIN_CELSIUS) { cout << "Invalid temperature: it cannot be lower than " << MIN_CELSIUS; _getch(); system("cls"); // erases …

Member Avatar for KungFuTze
0
706
Member Avatar for gisairo
Member Avatar for seakayaker

Hi, You could go with static class methods; here is an example using both global functions and static methods (they are pretty much the same thing): [CODE]typedef void(*ParamFunc)(int i); void ExternalFunctionThatGetsPassedAsParam(int i) { i++; } class Goodies { public: static void SomeFunction(ParamFunc p) { p(5); } }; class DoManyThings { …

Member Avatar for seakayaker
0
129
Member Avatar for jasonjinct

You may want to look at std classes. [CODE]vector<string> myStringArray[/CODE] is way better than the clasical array

Member Avatar for vali82
1
129
Member Avatar for goody11

change "if (i == rEngV.size())" to "if (i == rEngV.size() - 1)" accessing rEngV[rEngV.size()] is wrong

Member Avatar for vali82
0
184

The End.