why didn't my compiler told me that;) stupid machine:laugh:;P []D [] []D []
Willem B
Posts
-
adress value of pointer NULL -
adress value of pointer NULLsorry already got the solution, 0xcccccccc is the point adress value of a undefined pointer(standart value). i forgot the define my pointer before getting values from it. dumb dumb:D thnx anyways []D [] []D []
-
adress value of pointer NULLhi, quick question about the pointer NULL. witch adress value does it have? does it happen to be 0xcccccccc? thnx, willem []D [] []D []
-
programm crashes wenn retrieving a CStringoke... I'm getting pretty crazy here... it was all a compiler fault... i rebuilt my hole project and guess what: problem solved.... damn those debug files.... thanx for helping me out... []D [] []D []
-
programm crashes wenn retrieving a CStringokey, i tried it one more time, and it does copy the values of the struct but the problem with the CString still remains.... []D [] []D []
-
programm crashes wenn retrieving a CStringwell it didn't work... i made the the struct then i send the pointer to that struct towards the function to safe it in the list... than after that i just want to put it into the linked list... so: you say i have to do this:
NewLeverancier /* witch is the new pointer */ = new CLeverancierStruct(*Leverancier /* witch is the pointer to the struct */); m_LeveranciersLijst/* witch is the list */.AddTail(NewLeverancier);
[]D [] []D [] -
programm crashes wenn retrieving a CStringhi, i've developed a program that puts a struct into a linked list... Wenn i put the new record into my list, and i read it after that, the program crashes(wenn getting the CString)... the problem is that my list is not updated at all... if i read a number that is inserted with the value 3, it has the value -2421523832 wenn retreiving it... now i want to know how to update my list, not that i don't know it at all but my way is not working. i get the pointer(Leverancier) to my struct in the function that updates the list...
NewLeverancier = new CLeverancierStruct; NewLeverancier = Leverancier; m_LeveranciersLijst.AddTail(NewLeverancier);
should this work? []D [] []D [] -
Crash after reading a linked list CStringi think this is the reason my programm crashes, but how can i prevent it? []D [] []D []
-
Crash after reading a linked list CStringhi, i've made a linked list that contains info that i want to read in another function. Wenn i make a new record and insert it into the linked list my programm crashes the next time it reads the list. it can read everything except for the new record. i think it has something to do with the insertion of a wrong pointer. here's the code for inserting the new record:
Leverancier->LeverancierID = GetNewLeverancierID(); NewLeverancier = new CLeverancierStruct; NewLeverancier = Leverancier; m_LeveranciersLijst.AddTail(NewLeverancier);
the "Leverancier" variable contains the info that has to be inserted. The next time i try to read the new record the programm just crashes on the point of retreving a CString it's value(for the struct). []D [] []D [] -
Cleaning my memory wenn shutting down programmis it harmfull if i let the compiler delete it? []D [] []D []
-
Cleaning my memory wenn shutting down programmhi, I'm developing a program that uses linked list's as a cover for the database. So i have list's of >1000 struct's. wenn i shut down my program i get memory dumps:
C:\projecten\PLCServer 0.2\DBVoorraadBeheer.cpp(63) : {3263} normal block at 0x06B95498, 44 bytes long. Data: < dU U U > 01 00 00 00 64 55 B9 06 0C 55 B9 06 BC 55 B9 06 strcore.cpp(118) : {3262} normal block at 0x06B95440, 15 bytes long. Data: < A > 01 00 00 00 01 00 00 00 02 00 00 00 41 00 00 strcore.cpp(118) : {3261} normal block at 0x06B953B8, 67 bytes long. Data: < 6 Spir> 01 00 00 00 1B 00 00 00 36 00 00 00 53 70 69 72 strcore.cpp(118) : {3260} normal block at 0x06B95360, 25 bytes long. Data: < 0700> 01 00 00 00 06 00 00 00 0C 00 00 00 30 37 30 30 strcore.cpp(118) : {3259} normal block at 0x06B95308, 25 bytes long. Data: < Cool> 01 00 00 00 06 00 00 00 0C 00 00 00 43 6F 6F 6C
how can i prevent this? []D [] []D [] -
read the recording volumehi, i want to make a very simpel programm that reads how much sound volume it messured by the microfone. Anyone knows how to do that? []D [] []D []
-
file pickeryour right... thnx []D [] []D []
-
file pickergot the solution: FileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT, "Exe Files (*.exe)|*.exe|All Files (*.*)|*.*||", this); dlg.m_ofn.lpstrTitle = "Select the File"; if(dlg.DoModal() == IDOK) { m_strExtractorPath = dlg.GetPathName(); } []D [] []D []
-
file pickerhi, can someone tell me where to find a file picker component for VC++? greetz, willem []D [] []D []
-
How to merge resources in VC++Import the .cpp and .h files into your project and change the App class(#include "myapp.h") of the .cpp files. then also rename the Resources(IDD_yourresource) into the names you use in your cpp and h files(or the other way around, change the names in your .cpp and .h files) it should workt then. []D [] []D []
-
Reading the Scrollbar of a CListBox/CComboBoxhi, I want to make an program that reads the content of a listbox from a different source. The reason is, if there are a 1000 records requested over a network it only has to load the records that are shown. Causing that the user doesn't have to wait for the downloading of all the 1000 records. the way i'm doing it now is by filling the listbox with empty records:
for (int i = 0; (!(i > Db.GetCount())); i++) { m_MyListBox.InsertString(i, ""); }
Then, Wenn the user wants to see a different part of the listbox i update the data:int cur, max; cur = m_MyListBox.GetScrollPos(SB_VERT); max = Db.GetCount(); if (!(cur + 5 > max)) { max = cur + 5; } for (int i = cur; (!(i > max)); i++) { m_MyListBox.DeleteString(i); m_MyListBox.InsertString(i, Db.GetItem(i)); }
Now, I want to run this function wenn the Scrollbar is moved, but i dont know witch message to catch. Anyone have the solution? I hope my explaining of the problem is correct, my english isn't that great... []D [] []D [] -
Windows XP Proff. better than 98?try NT4 or 2000... i thing 2000 is even better than xp []D [] []D []
-
heeeeeeeeeeelp visual studio not running on XPKuniva wrote: Microsoft works in mysterious ways Your ABSOLUTELY right! lol... []D [] []D []
-
Compile error.Please help me.i think you use the function "SetSize" of the libary afxtempl.h the wrong way causes it to copy wrong memory... maybe your value is negative, your error is somewhere while using CArray. []D [] []D []