|
Megidolaon wrote: Thus I never found that you need #include to make it work in VC++, I just tried it out and it works fine.
Without that, I always got an error with using std;.
becasue you probably used it badly.
can you post a code sample of a "not compiling" code, and the associated error ?
We'll tell you what's wrong then...
Megidolaon wrote: As for other OS, it should be fine if I don't get too much into the MS specific libraries?
As far as you do command line applications, everything will be ok.
unfortunately, as soon as you start a windowed application, you'll have to choose a graphical library, which is most of the time OS-specific...
But you know, it's not a bad choice sometimes to move a little from the standard C++ paths, especially for things that are anyway specifics to the OS.
But for the logical layers, all depends on what systems you target, but I personnally prefer staying standard as much as I can...
|
|
|
|
|
https://forum.codejock.com/forum_posts.asp?TID=6186[^]
i have the same problem like above link.
OnCtlColor not working in property sheet and the background of controls not colred.
here one solution is given but i cant understand this.please explain me with example
and please give me any other solution to solve my problem.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Didn't you ask this question a couple of days ago, and I suggested looking for the WM_CTLCOLOR message (and its cousins) using Spy++ tool? I don't remember you replying to my suggestion.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hi All
How can i get Device ID of Removal Device?PLz help me
|
|
|
|
|
You should be able to get that from the lParam parameter of the WM_DEVICECHANGE message when the wParam parameter is DBT_DEVICEREMOVECOMPLETE .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
how to draw transparent rectangle in MFC
I have tried using following code but it does not work.
int nPrevMode = pDC->SetBkMode(TRANSPARENT);
COLORREF bkcolor = pDC->SetBkColor(BLACK);
pDC->Rectangle(rect1.left, rect1.top, rect1.right, rect1.bottom);
thanks
|
|
|
|
|
Use CDC::FrameRect[^] or use CDC::Rectangle[^] with a NULL_BRUSH[^].
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
saksp wrote: does not work.
Define what you expected to happen and what actually happened. I suspect your expectation doesn't match what the documentation promises.
The documentation of SetBkMode says this:
The background mix mode is used with text, hatched brushes, and pen styles that are not solid lines.
Are you using any of those three?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
do you mean you need a frame not filled with any clour?
if so,framerect may help you.
|
|
|
|
|
|
Hello,
I am currently trying to run a vbs-Script the same way I'd run an exe from within my MFC app, so I pass the call to my "test.vbs" to CreateProcess, which unfortunately fails (GetLastError returns code 193). What is a safe way to execute a VBS-Script? If I doubleclick the vbs file in Windows explorer, everything works fine.
|
|
|
|
|
You can use ShellExecute to run the vbs file.
ShellExecute(0, "open", "test.vbs", ...
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Mr Superman's answer is probably what you want, but if you want or need more control over how your VBScript runs than opening it with ShellExecute (for example, should it have a console window or not?), you could construct a command line to execute it like, using cscript or wscript as the executable and pass your vbs file as a parameter.
For example:
wscript a.vbs would run the VB script without a console window.
cscript a.vbs //X would run the VB script with a console window and attached to a debugger (if there is one).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: Mr Superman
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]
|
|
|
|
|
Thanks to both of you, both solutions work well, I am still deciding which one to chose finally
|
|
|
|
|
hi everyone
I want load a jpg and a png,then add png to jpg,at last it will output a jpg.
what can i do?
Thanks in advanced
|
|
|
|
|
|
it means a png insert to a jpg, 2 images will output 1 image
|
|
|
|
|
wenbingao wrote: add png to jpg
For what definition of 'add'?
Splitting the task into components:
- Load jpg or png - CImage[^] will do that
- Adding the two images? As I said, depends what you mean by add
- Save the resulting bitmap as a jpg - again, CImage will do that
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
the image I want is made up of a jpg and a png,so "add" means two images become one,jpg is background img,png is the foreground.
what can I do for synthesis two image?
|
|
|
|
|
You probably want to AlphaBlend[^] the png onto the jpg. You'll need to work out how transparency is indicated in the png file.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
thank you for your reply.I'll research it
thanks again
|
|
|
|
|
what's d meaning of these following error messages..
how do i overcome these error??
1>------ Build started: Project: SQLite, Configuration: Debug Win32 ------
1>Compiling...
1>SQLite.cpp
1>Linking...
1>SQLite.obj : error LNK2019: unresolved external symbol _sqlite3_free referenced in function _main
1>SQLite.obj : error LNK2019: unresolved external symbol _sqlite3_exec referenced in function _main
1>SQLite.obj : error LNK2019: unresolved external symbol _sqlite3_close referenced in function _main
1>SQLite.obj : error LNK2019: unresolved external symbol _sqlite3_errmsg referenced in function _main
1>SQLite.obj : error LNK2019: unresolved external symbol _sqlite3_open referenced in function _main
1>C:\Users\Vani\Documents\Visual Studio 2005\Projects\SQLite\Debug\SQLite.exe : fatal error LNK1120: 5 unresolved externals
1>Build log was saved at "file://c:\Users\Vani\Documents\Visual Studio 2005\Projects\SQLite\SQLite\Debug\BuildLog.htm"
1>SQLite - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
|
|
|
|
|
You probably forgot to link to the correct library (the sqllite library). Have you done that in your project settings ?
|
|
|
|