|
... added some libraries in the linker tab and it works.
Thxx
~RaGE();
|
|
|
|
|
This code compiled without any errors in VC6:
#include <stdio.h>
#include <process.h>
int main()
{
exit(0);
printf("dfdfghdf");
return 0;
}
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
hi!all
on windowsXP progress bar is not getting refreshed..my same code runs fine on win98.can somebody help me out.
thanks in advance.
--Shiben.
shibenOL
|
|
|
|
|
What do you mean with not getting refreshed ? Does it display anything at all ?
~RaGE();
|
|
|
|
|
Hi!Rage
Thanks for looking into the thing.
my progress bar is getting displayed well but if i change the focus to some other object and come back again to this progress bar it stops(getting refreshed i guess)otherwise on win98 the same code works very fine.
Thanks and Regards'
--Shiben..
|
|
|
|
|
I have tried to determine if a field is PK (primary) or FK (foreign key) but not much luck. One constraint: this must be done ADO/C++.
I'm almost completing my module now... a short code sample in C++ will definitely help a lot...
Basically,
pRs->Fields->Item[j]->get_Name(&bstrFieldName); //This is how I retrieve field name.
nType = pRs->Fields->Item[j]->Type; //This is how I retrieve data type.
But how can you determine if a field is PK/FK??
Help!
Reference:
http://www.codeguru.com/forum/showthread.php?s=&postid=634066#post634066
norm
|
|
|
|
|
hi, i need to identify database schema. Some people suggested to use OpenSchema.. but i've no idea how to use this API from VC. All samples are in VB.
So, I did the following:
char szPK[20];
strcpy(szPK, (pRs->Fields->Item[j])->Properties->Item["KEYCOLUMN"]);
This doesnt work of course. But it illustrates the intention is to determine:
(a) Given a field, is it a "Primary Key" OR "Foreign Key"
(b) And "After" identify that a field is a foreign/primary key, determine the "associated: table.
Thanks
norm
|
|
|
|
|
Hello,
I just added UNICODE support to my App and it fails to work properly. Even simple string assignments fail, I always end up with one (the first) character.
example,
<br />
CString s;<br />
s = _T("Test");<br />
Now s seems to be 'T'. What's going on here?
|
|
|
|
|
Try defining both UNICODE and _UNICODE in the predefined macros section.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I think the problem is in your output of the value. There are two things to remember:
1. Unicode handling is mostly limited to NT/2000 platforms.
2. If you use an ansi string function on a unicode string you will (very often) see that the function gets only the first byte of the 2 byte character. That is because the second byte is often 0x00.
You say that you have added UNICODE support, does that mean that you have defined UNICODE?, then perhaps you could try defining _UNICODE as well.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
I suggest you have a look at Michael Dunn's string articles from here[^] and here[^]
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
van Padoea wrote:
Now s seems to be 'T'. What's going on here?
Did you see this in the debugger?
Check the "Tools/Options/Debug/Display unicode strings" option
My latest article:
SQL Server DO's and DONT's[^]
|
|
|
|
|
Doh, thank you! There was nothing wrong!
|
|
|
|
|
Dear All,
Good Day...
I need to know how i can make windows notifies me about specific things like running a programm i.e Calculator.
i want Windows to tell me that a programm just run for example.
plz help.
thank you all.
Best Regards,
Mohammad Zakarni
|
|
|
|
|
Windows itself can't tell you but you can "ask" Windows.
If you have a timer with an interval at 50 or something and check if Calculator is running with FindWindow or something. There is better ways to find a running app but I don't remnember how right now!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
There is a way to get the Windows shell to tell you though.
Maybe quite a few....
A really icky one, was to override the .exe association via
the HKEY_CLASSES_ROOT\.exe and associate it with a program
of your own that logs, or whatever, and then proceeds to
launch the application.
I first saw this as a really mean trick.
Now where was that reference....
|
|
|
|
|
Scott H. Settlemier wrote:
override the .exe association via
the HKEY_CLASSES_ROOT\.exe
Cool!
Are you 100 % sure it works?
Tell me the link/referennce if you'll find it!!!!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Hi!
I am writing a DVD Player for a hardware decoding card at the moment.
I choosed DirectShow to do this, because I need a SourceFilter which is able to handle CSS protected discs (and is legal). So I wrote a DirectShow Render Filter, which decodes the MPEG2 streams.
Nearly all is working fine. Playback of video and audio works great with the "pure" movie.
Now I want to implement a DVD menu navigation into my filter.
I use an improved MS DVD Sample application, because many DVD menu related things are in there.
But now I have a problem:
I can´t get the button highlight informations out of the SourceFiler.
With other words:
I need the positions of the buttons (as rectangle values) for the actual selected DVD menu.
I tried the IDVDInfo2::GetButtonRect() function, but its not implemented in DirectX yet (hmm). Same with IDVDInfo2::GetButtonAtPosition() (double hmm).
Then i tried to get/set the AM_KSPROPSETID_DvdSubPic from the IKsPropertySet but this is not supported by both SorceFilter I tried.
Btw as SourceFilter I use MS DVD Navigator or InterVideo DVD Navigator.
My Questions is now:
Does anybody know a way how to get the DVD menu button highlight informations out of the SourceFilter?
Any suggestions? Please!
Bye FBD
|
|
|
|
|
Hi,
Please can someone help me with this stupid problem. I want to use a vector on this way: vector<cstring> StringVector.
I get the follow errors and have the vector included on this way: #include <vector> in the header.
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
etc..
thanks,
Willem
|
|
|
|
|
Hi!
This message looks like a not correct included header file.
Maybe another .h file ,loaded before, is not correct "finished" (missed to set a ; )
You should check the order of the .h files you include.
What kind of type is vector?
Maybe it is a class name in another .h file?
Bye FatBastard
|
|
|
|
|
The < characters have been eaten! Next time tick on the "Notify me by e-mail if someone answers this message" check box before submitting your post.
As for your problem, you've got to define your vector type as
std::vector<CString> StringVector; Regards,
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I think you need to add the followin line:
using std::vector;
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
Guys,
What would cause my PC's graphic display to behave all funny and the system eventually to crash?
Are there any tools that would be able to give me some kind of direction in locating the problem.
What can I do using MS VC++ tools.
The program that I run is quite big with 65 threads, a plethora of supporting files, MDI interface, and dialog boxes.
I am running NT with Service Pack 6.0, VC++ 6.0
Any general advice will be appreciated.
Thanks
Louis
|
|
|
|
|
louis wrote:
What would cause my PC's graphic display to behave all funny
The problem may come from the use of graphical objects (as pens or fonts), selected in a device context which is released without reassigning before the original GUI objects.
For example, the following (dummy) code is wrong:
{<br />
CDC myDC;<br />
CPen myPen;<br />
<br />
myPen.CreatePen(PS_SOLID, 1, RGB(0, 0, 0));<br />
myDC.SelectObject(myPen);<br />
myDC.LineTo(0, 0);<br />
}
This one is good
{<br />
CDC myDC;<br />
CPen myPen;<br />
CPen *pOldPen;<br />
<br />
myPen.CreatePen(PS_SOLID, 1, RGB(0, 0, 0));<br />
pOldPen = myDC.SelectObject(myPen);<br />
myDC.LineTo(0, 0);<br />
myDC.SelectObject(pOldPen);
}
HTH,
Ohé Partisans, Ouvriers et Paysans
C'est l'alarme!
Le Chant des Partisans
|
|
|
|
|
Thank you very much.
Your advice is highly appreciated.
I have gone thru the graphical objects as suggested.
All code seem to be implemented the correct way.
I intent to go thru it again to confirm.
An interesting comment by someone else is to monitor the GDI Objects in Task Manager. I however are unable to activate it in NT. Any advice here.
Thanks.
Louis
|
|
|
|