12 Posted Topics
try using this? [CODE] void Pig::Kill() { destroy this; } [/CODE]
Hey guys. Can you have a look at my queries? I can't spot the error with my foreign key linking. As of now, the table staff has already existed: StaffID char(7) Staff_Name varchar(50) Position varchar(50) And now I'm trying to create a new table called SalesInvoice: create table SalesInvoice( SalesInvoiceID …
Hey guys, is there a way to get a node's name and assign it as a value to a variable using javascript? Here's an example structure of the xml. [CODE] <list> <student id="101"> <name>John Smith</name> <DOB>07-09-1987</DOB> <address>123 ABC street</address> </student> <student id="102"> <name>John Doe</name> <DOB>05-04-1986</DOB> <address>234 DEF street</address> <address2>345 GHI …
Hello everyone, Lyandor here. Just joined today after sometime lurking around in the shadows in daniweb, looking forward to your guidance everyone. As for my background.... I started programming like 4 years ago, but haven't been an active one, just barely enough to get by my semesters :P As for …
ehhh my guess is either: wrong name spelling for your main function wrong data type for your main function no return for main function or if you're attempting for winapi, you should have winmain instead of main. Then again, post your code, there's too many guesses with what information you …
First: there is, though not directly, you can use resource editor to create dialogs visually. just add new resources and visual studio (assuming you're using it) should show you a blank dialog with 2 buttons. just play around like you do in .NET Second: Adding to the first, you can …
your comparison inputs a digit into 1 array slot. So instead of 45 in codearray[0], it becomes 4 in codearray[0] and 5 in codearray[1]. if you want to input each slot with 2 digits each, i would reccomend changing the algoritm this way: leap j by 2 everytime the loop …
Here's a little pointer [CODE] if (a > b) { if (a > c) { //highest value is a } else if (a < c) { //highest is c }[/CODE] do the same for b and c and you should be fine. I'm not up for the idea of a …
Hmmm I did something similar, except i stored the strings from the file into a vector. What i did was: getline(1,2,3); 1 being the filename 2 being the variable used to store the value in and the 3rd would be the divider which signals the code to stop reading. Let's …
A little poll, which do you guys prefer to use for an application that uses 2 or more windows at the same time? MDI or modeless dialogs? And the reason why.
your codes in MyTime.cpp aren't complete. let's say your default constructor instead of: [CODE] MyTime::MyTime() //code[/CODE] It should be: [CODE] MyTime::MyTime() { //code }[/CODE] do keep in mind that functions have to have () at the back of their name such as void Mytime::IncrDay() which you typed as void MyTime::IncrDay. …
Hey guys, I'm new to this forum so nice to meet you all :D I'm really bugged by a weird bug that prevents my dialog from showing up, however the buttons show up twice, one overlapping the other. I saw other threads that discusses about this but I'm afraid I …
The End.