|
I think it's not necessary to type cast because the operator LPCTSTR() is not explicit. Just directly pass it.
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
hi, i have been trying to create a sqlite database using visual c++.
I'm getting an unfamiliar error message box while the program execute insert sql statement.I have posted the error message below. Please help me to solve this problem.
Thank you.
---------------------------------------------------------------------------------------------------------
Unhandled exception at 0x00000000 in sparta1.exe: 0xC0000005: Access violation reading location 0x000000v00.
the error message also have a break,continue and ignore button below the message box.
---------------------------------------------------------------------------------------------------------
|
|
|
|
|
This is an informative message meaning that there was some exception (in lay mans term, it's like a malfunction) that was not handled in the code. The second chance exception does not really mean that there may be an error only in your code. Usually the code 0xc0000005 indicates a second chance exception. Did you try and debug your code to check the cause of the problem?
Are you aware of what exceptions are and why do they arise?
If not, go and read about exception to better understand the problem and then try to resolve it.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
modified on Thursday, February 12, 2009 12:25 AM
|
|
|
|
|
Check all your pointers for errors.
This error is likely to be an uninitialized pointer or a pointer holding a wrong address.
«_Superman_»
|
|
|
|
|
vanishaa wrote: I'm getting an unfamiliar error message box
Wow, if it's unfamiliar tp you, either you are very new to programming or you were programming quite good from the begining. Because I remember when I started programming, I got this kind of message a looooot of times.
Anyway, as other have suggested, this error is because you are trying to read a bad pointer. Use your debugger to locate the problem and use breakpoints before the crash to check if all your variables are initialized properly.
|
|
|
|
|
Hi All
How can i remove duplicate item from list control?I have a list control report view which have 100 data.I want to reomve duplicate data(data which is present more than one time in list control).Plz help me
|
|
|
|
|
How about comparing the items in the list control and checking if a copy of it exists?
If affirmative, use CListCtrl::DeleteItem...
Is your problem with the comparison part of the items or the removal of copies of data?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Thanks for reply
i have problem with the comparison part of the items .Can you give me some example .Plz help me
|
|
|
|
|
Start with two loops.
In the first loop pick an item from the list using GetItemData
In the second loop [inside the first loop] iterate through all the items in the list and compare the data for each item with the item of the first loop..
If it's a match mark the item for deletion and delete it using DeleteItem API
You do this until you finish comparison of all the items in the list control.
By the way, it would be better to maintain a vector of items and compare them before inserting them in the list.
Using a map, you can make sure that the items are unique.The value of the key is unique and is used to order the data automatically
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
You will have to write a code to compare items and remove from the list if duplicate found as thr is no inbuild method provided to do so, and its not too hard.
|
|
|
|
|
MsmVc wrote: How can i remove duplicate item from list control?
Check to see if the item exists first before adding it a second time.
Another option would be to add all the items to a set , which can contain only unique items, and then populate the list control from that.
If you added the items to a list , then you could use its unique() method.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
Sorry sir,,,
Sorry for being late....
I will ummm..... try and complete the assignment today,....
Would mail you the complete source code....
Can you please let me know your email id....
Request you not to send a reminder again
OUTLOOK: I am fed up of reminders reminding me about what I intend to forget
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
yes. my mail id is purish87@yahoo.com
|
|
|
|
|
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
By the way did you see this link posted by Sarath Link[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
Purish Dwivedi wrote: When will u complete my assignment sir? Please make it fast. Thank You
Damn, you can't be serious Where do you think you are, on a market ?
Did you ever heard about sarcasm[^] ?
|
|
|
|
|
|
Purish Dwivedi wrote: I need help
No, what you are looking for is somebody doing the job for you. And this is the wrong place to ask, because nobody is being paid here. If you want somebody doing everything for you, then you have to hire someone (but again, this is not the right place for that).
You already got a lot of help: plenty of links to good articles explaining how to do the thing you are looking for. Did you even read them ? Did you try to do what was explained ?
If you want to be helped, you have to work a bit on your side also. Once you have read some of the articles, then you can come back with specific questions, asking things that were not clear for you. If you don't want to work or make some effort to understand things, then you will have to accept that nobody will do that for you for free.
|
|
|
|
|
Typing non stop of speed of 206+ words per minute....
Compiler throwing errors saying "Cannot continue... Please confirm if the assignment is for Purish Dwivedi".
Also there are some errors ;
LINKER: Don't know how to link to sub modules of the application
Can you please tell me how can I resolve it.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Simply exploit your inherent talent [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am working on IAS extension authential dll.I want to get Username and Passowrd.When PAP is used ,I get radius attributes like RADIUS_ATTRIBUTE_TYPE username and password in ratUserName , ratUserPassword.But if radius client sends request using ms-chap,I get username in ratUserName in structure member,but I do not get password in ratPassWord or ratCHAPPassword structure.
It seems that there is no member for ms-chap password in RADIUS_ATTRIBUTE_TYPE structure.
How do i get password information sent by user if ms-chap encryption is used?
If you want to say that ms-chap password is contained in access-request packet,how to get and use the packet?
Can any body help me ?
thanks
|
|
|
|
|
A quick Google for "RADIUS_ATTRIBUTE_TYPE chap" leads to the relevant RFC[^], which tells us that you won't see the plain-text password in ratCHAPPassword. Rather, you'll see the encrypted password. Maybe that's what you're missing?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|