|
After installing the Platform SDK rebase.exe suddenly stopped to generate .dbg files. Looking closely, the platform SDK version 5.2.3639.0 does not seem to work, it does nothing!
Any kind of clue is aprecciated
|
|
|
|
|
That is correct. As of version ".NET" Microsoft have removed the possibility to create .DBG files. Actually, they have removed CV (CodeView) creation completely. They seems to think you should switch to their PDB-handling API (which I've never seen documented anywhere, and probably never will since they will with almost 100% certainty change it for every new compiler version).
Basically, you're screwed. Better back down to VC6 again if you need DBG.
|
|
|
|
|
Microsoft does it again !
Thanks for your answer Mike, I guess I better start digging MSDN about that new API you are talking about
|
|
|
|
|
please provide the link of different comprehancive examples of com and com+
and a little help how to run it?
r00d0034@yahoo.com
|
|
|
|
|
http://www.codeproject.com/com/
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
|
I am running VC++ 6.0 on a WinXP-Home machine. Often a build will hang up (usually while linking). Pressing "stop build" does nothing other than depress the button. I then have to kill the process, open the workspace, and try the build again. This never happened when I was running Win2000-Pro. I have not found any reports of this problem. Has anyone conquered this problem?
Thanks.
|
|
|
|
|
No problems here at all...
I've seen a similar problem with a (unavailable) network path in the LIB environment variable, or in the lib search directories configured in VC.
Concussus surgo.
When struck I rise.
|
|
|
|
|
Daniel:
Thanks for the response.
All of my lib paths (environment var and config'd in vc++) are local and exist.
This problem also happened on another machine in the office (WinXP-Pro). In both cases the problem didn't show up the 1st couple of weeks after the machine was set up, but then slowly got worse.
|
|
|
|
|
Maybe you should clean temporary files?
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
Are you running (actually, have you even ever installed - running or not) some anti-virus program? If so, try uninstalling it (just disabling it won't work in many cases).
|
|
|
|
|
This compiled okay when I set
_variant_t abc = "a";
But didnt like it when I tested it like this
if (abc == "a")
also tried
if(!strcmp(abc, "a")
How do I compare a variant? Also, maybe I;m not even allowed to assign it like I did, but it did compile at the assignmentThank you,
ns
|
|
|
|
|
(_bstr_t)abc == "a"
Concussus surgo.
When struck I rise.
|
|
|
|
|
Use the _bstr_t conversion method to get the string back.
if ( (_bstr_t) abc == _bstr_t("a") )
--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I have :
_bstr_t bstrFile(L"");
I want to detect later if its empty. How do I do this?
CanI say if(bstrFile == "") DoThis();
Or will it have to be a strcmp or something?
Actually I dont really know why it has to be a bstr. Heres the code thats using it. Perhaps some object in it needs a bstr:
CFileDialog pDialog1(TRUE,"*.bmp", "*.bmp", OFN_HIDEREADONLY ,"Image Files
(*.bmp;*.dib;*.gif;*.jpg;*.jpe;*.ico;*.cur)");
pDialog1.m_ofn.lpstrTitle = "Open Sketch";
if(pDialog1.DoModal() == IDOK)
{
CFile file((LPCTSTR)pDialog1.GetFileName(),CFile::modeRead);
bstrFile1 = file.GetFilePath();
}
which is then used by:
strmBlob->Type = adTypeBinary;
strmBlob->Open(vtEmpty,adModeUnknown,adOpenStreamUnspecified,bstrEmpty,bstrEmpty);
if(bstrFile strmBlob->LoadFromFile(bstrFile);
so it might be that the _StreamPtr strmBlob (__uuidof(Stream) ); needs to read in a bstr filename....
Thanks,
ns
|
|
|
|
|
ns wrote:
I want to detect later if its empty. How do I do this?
use: bstrFile.length() == 0
ÿVOTD: 15 "The eyes of the Lord are on the righteous and his ears are attentive to their cry;
16 the face of the Lord is against those who do evil, to cut off the memory of them from the earth. " - Psalm 34:15-16 (1 Peter 3:11-12) (NIV)
|
|
|
|
|
(from MSDN) virtual CString CFile::GetFilePath( ) const;
It does not return a BSTR ! (at least in MFC7, may be true with MFC6 however).
Other question you ask is how to check if a _bstr_t is empty : you have _bstr_t::length() implemented and ready. Same question with BSTR, you must use the native WIN32 method ::SysStringLen(yourbstr),
And I swallow a small raisin.
|
|
|
|
|
Dear all,
I would like my dialog bar to be permenantly docked to the left frame. Is there anyway to do this?
Thanks.
CT
|
|
|
|
|
Call DockControlBar(pYourBar, AFX_IDW_DOCKBAR_LEFT) from your FrameWnd
ÿVOTD: 15 "The eyes of the Lord are on the righteous and his ears are attentive to their cry;
16 the face of the Lord is against those who do evil, to cut off the memory of them from the earth. " - Psalm 34:15-16 (1 Peter 3:11-12) (NIV)
|
|
|
|
|
I give the user a chance to pick a bmp file with cFileDialog. In the event he cancels out, I want to put some sort of non-null identifying entry into the database field where the blob was supposedto be stored. Now if this were a text field, I'd just put in a "_" if my entry was an empty string. But here, what shal I put into the field (access type Ole Object) That way when I go to read this field, if I see my identfying entry I can exit gracefully without further processing and an appropriate messagebox.. I hope my dilemma is clear to you. Plesae let me know if you have any ideas.
Thanks,
ns
|
|
|
|
|
Can't you just use null (in the relational DB sense)?
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
How would I recognize it when i went to read it out? I know my stuff crashes if I have blank entries in my database for text, so I had to resort to "" replaced by "_". The db doesnt quite like me to say
rs->fields("A")->value = NULL (putting in data)
and
if (rs->fields("A")->value == NULL) DoSomething(); getting out data.
Thats also because the db I created in code does not allow zero length entries simply because I didnt find the commnad to make it do so.
ns
|
|
|
|
|
It seems your DB experience is extremely thin
One of major concepts in databases are null values. This has nothing to do with C/C++ NULL pointer. Null value designates something which is unknown/not present. SQL provides special operators, like "IS NULL" or "IS NOT NULL", because you can't compare things with NULL.
Your example with "_" as special string is ideal candidate for using null values, as is the blob situation.
How do you set/check for null values in ADO? I don't know; it's been few years since I've coded last database app, and I was using OLEDB (ADODB underlying technology).
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
I have created a fairly simple "database" program for a friend of mine - it uses an Access database, and ADO to connect the user interface (created with VC++ 6.0) with it. I have deployed this app on a variety of test machines, and it worked perfectly on each one.
However, it does not work on my friend's machine! The app simply does not "connect" with the database - there are no errors, but it doesn't retrieve any data whatsoever. The machine in question is running Windows 98 First Edition, and he doesn't have Access installed (not normally a problem). The Access Drivers installed were version 3.5, so I upgraded them using MDAC 2.1 to ver 4.0. That hasn't solved the problem....
Has anyone else had this hassle? Is it actually the Access driver version cauing the problem, or is it something else? PLEASE help!
|
|
|
|
|
www.microsoft.com/data[^] has the necessary downloads. Look for Jet4 SP3 in 'Downloads' section.
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|