Click here to Skip to main content
15,902,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralIExtractImage::GetLocation() brings up a "Thumbnail could not be created" message-box Pin
ohadp10-Nov-03 5:31
ohadp10-Nov-03 5:31 
QuestionHelp!!!---ATL COM Full Control can't cooperate with MFC? Pin
Dev-xiang10-Nov-03 5:30
Dev-xiang10-Nov-03 5:30 
Generalproperty page problem Pin
YaronNir10-Nov-03 5:17
YaronNir10-Nov-03 5:17 
GeneralRe: property page problem Pin
Antti Keskinen10-Nov-03 7:54
Antti Keskinen10-Nov-03 7:54 
GeneralAnonymous Pin
Anonymous10-Nov-03 5:04
Anonymous10-Nov-03 5:04 
GeneralRe: Anonymous Pin
Roger Allen10-Nov-03 5:07
Roger Allen10-Nov-03 5:07 
GeneralRe: Anonymous Pin
jmkhael10-Nov-03 5:10
jmkhael10-Nov-03 5:10 
GeneralSimple database problem please help me Pin
Scozturk10-Nov-03 4:28
professionalScozturk10-Nov-03 4:28 
Hi!
I have a problem and I cannot find the solution for it. I am using the win32 api to create a database application and I am sending sql statements to retrieve and put data.
In my access database I have a field called TEST, it is a text field. The thing I want to do is to add some text to it everytime the user opens my program. For that I am using:
<br />
_bstr_t sqlquery;<br />
LPTSTR tester = "";<br />
LPTSTR no = "12";<br />
char formula[MAX_PATH];<br />
sprintf(formula, "\"UPDATE TABLO SET TEST = '%s' WHERE (NO = '%s')\"", tester, no);	<br />
sqlquery = (_bstr_t)formula;<br />
try<br />
{<br />
	pSet = pDb->Execute(sqlquery, &vRecsAffected, adOptionUnspecified);<br />
}<br />
catch( _com_error &e )<br />
{<br />
// Get info from _com_error<br />
bstr_t bstrSource(e.Source());<br />
_bstr_t bs =  _bstr_t(" Error: ") + _bstr_t(e.Error()) + _bstr_t(" Mesaj: ") + _bstr_t(e.ErrorMessage()) + _bstr_t("\nHata Tanımı:\n") <br />
+ _bstr_t(e.Description());        <br />
MessageBox(0,bs,bstrSource, MB_OK);<br />
}<br />
<br />

And when my program runs it gives me an error like:
"Error: -2147217900 Message: IDispatch error #3092"

I am really confused Confused | :confused: OMG | :OMG: Please help me!
Thank you very much for your future answers!

(Note the code up there works if there is less than 8 or 9 characters... )

Well... I am a beginner ...
GeneralRe: Simple database problem please help me Pin
David Crow10-Nov-03 4:42
David Crow10-Nov-03 4:42 
GeneralRe: Simple database problem please help me Pin
Scozturk11-Nov-03 2:18
professionalScozturk11-Nov-03 2:18 
GeneralRe: Simple database problem please help me Pin
antlers10-Nov-03 6:41
antlers10-Nov-03 6:41 
GeneralRe: Simple database problem please help me Pin
Scozturk11-Nov-03 2:21
professionalScozturk11-Nov-03 2:21 
Generalfunction Pin
Anonymous10-Nov-03 2:27
Anonymous10-Nov-03 2:27 
GeneralRe: function Pin
Alvaro Mendez10-Nov-03 4:23
Alvaro Mendez10-Nov-03 4:23 
GeneralRegEnumKeyEx problem Pin
Anonymous10-Nov-03 2:23
Anonymous10-Nov-03 2:23 
GeneralRe: RegEnumKeyEx problem Pin
Brian Shifrin10-Nov-03 4:12
Brian Shifrin10-Nov-03 4:12 
QuestionActive a event while in a while loop ?? Pin
Member 40481310-Nov-03 0:33
Member 40481310-Nov-03 0:33 
AnswerRe: Active a event while in a while loop ?? Pin
jmkhael10-Nov-03 0:37
jmkhael10-Nov-03 0:37 
GeneralRe: Active a event while in a while loop ?? Pin
BadJerry10-Nov-03 0:45
BadJerry10-Nov-03 0:45 
GeneralRe: Active a event while in a while loop ?? Pin
jmkhael10-Nov-03 1:52
jmkhael10-Nov-03 1:52 
AnswerRe: Active a event while in a while loop ?? Pin
BadJerry10-Nov-03 0:48
BadJerry10-Nov-03 0:48 
GeneralGetWindowRect returns incorrect ComboBox size Pin
Yonatan10-Nov-03 0:04
Yonatan10-Nov-03 0:04 
GeneralRe: GetWindowRect returns incorrect ComboBox size Pin
Roger Allen10-Nov-03 0:59
Roger Allen10-Nov-03 0:59 
GeneralRe: GetWindowRect returns incorrect ComboBox size Pin
Yonatan10-Nov-03 1:15
Yonatan10-Nov-03 1:15 
GeneralRe: GetWindowRect returns incorrect ComboBox size Pin
Roger Allen10-Nov-03 5:11
Roger Allen10-Nov-03 5:11 

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.