|
I'm sorry, my eyes are deaf. Can you type a bit louder please?
Iain.
I have now moved to Sweden for love (awwww).
|
|
|
|
|
Please read the post at the top of the forum "HOW TO ASK A QUESTION", if you follow its instructions you will give a more helpful answer.
Ali
|
|
|
|
|
Hi everybody,
As i said, MAPIReadNext function return 0 and a pointer to unread message on windows live mail, but after it, if i send a MAPIReadMail command i receive a 0 return code again, but the pointer to struct message is NULL.
Portion of my code:
MapiMessage* message ; // Created but not initialized
ULONG err=0; // Created and initialized
LPSTR rgchMsgID; // Created but not initialized
// return 0 and put 546 into rgchMsgID
ULONG uFindRet = lpfnMAPIFindNext(lhSession,0L,"","",MAPI_LONG_MSGID|MAPI_UNREAD_ONLY,0L,rgchMsgID);
err = lpfnMAPIReadMail(lhSession,0L,rgchMsgID,MAPI_BODY_AS_FILE,0,&message); // Return 0
if (message==NULL) // true, because message is NULL.
err = FAILMAIL; // Badly, Allways execute this line.
Can someone help me ?
I try everything i knew.
since now, thanks.
|
|
|
|
|
Hello,
In my MFC MDI application, I would like to dock a set of side panes in tabs. For the tabs, I would like a 32x32 icon and no text, similarly to the 3ds max style:
http://mods.terranova-exp.com/tutorials/3dsmax5/images/tut_image_01.jpg (the one in the upper right side of the window).
Is this achievable using the CDockingManager , or are the 16x16 icon sizes hard-coded?
I am using VS2010 RC.
Thanks in advance!
|
|
|
|
|
tell me Books on WIN32 c++??
|
|
|
|
|
http://www.charlespetzold.com/pw5/[^]
Don't know if there are better ones these days, but this one book should be on every Win32 programmer's desk.
Watched code never compiles.
|
|
|
|
|
You will need to google this, Windows Development it's on MSDN.
The book alone won't help much, but MSDN with Windows Development topic should put you in the right path.
You need to focus on which Windows version you want to target!
Windows XP / GDI
Windows Vista / Direct2D (update)
Windows 7 / Direct2D
Focus on CreateWindow function and Common Controls!
And Visual Styles...
|
|
|
|
|
Fareed Rizkalla wrote: You need to focus on which Windows version you want to target!
not really.
AFAIK, basic Win32 should work for all versions of Windows.
Fareed Rizkalla wrote: And Visual Styles...
not necessary IMO.
Watched code never compiles.
|
|
|
|
|
yea Maximilien is right.....tell me more books if anyone know...thankx Maximilien for the book
|
|
|
|
|
Visual Styles if he wants his apps to like shiny from Windows XP and later.
Windows 7
-New UI changes
-Location Services
-Direct 2D
... I believe these are more targeted towards Windows 7.
|
|
|
|
|
HI all,
Is it possible to link STL dynamically to my application? For me it is a bit confusing as template libraries are shipped as source. Hence making those in a DLL does not make sense. Please correct me if I am wrong.
The real problem here is I have a static library produced my latest compiler which uses STL. Now If my client want to use it this library with compiler of lower version, it gives STL class undefined error.
Please help.
~ Vikram S
|
|
|
|
|
vikrams wrote: Is it possible to link STL dynamically to my application? For me it is a bit confusing as template libraries are shipped as source. Hence making those in a DLL does not make sense.
Right.
vikrams wrote: The real problem here is I have a static library produced my latest compiler which uses STL. Now If my client want to use it this library with compiler of lower version, it gives STL class undefined error.
I don't get you here: using a static library (so, basically a collection of functions and/or classes in executable format) should have nothing to do with such an error...
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]
|
|
|
|
|
so if my static library is compiled with newer version of compiler and my client uses it in its code which is compiled with older version of compiler. Things should work fine?
This problem statment utimately boils down to
1) I have one static libray say "A" build with Compiler 2.0, uses STL
2) I have another static library "B" compiled with Compiler 1.0 uses STL
If I try to make my client application with Compiler 1.0. using both the libraries(A and B), will it work?
Does linker allows me to link two libraries carrying different STL instances? Can there be ambiguities or optimization issues?
~ Vikram S
|
|
|
|
|
But...
... the template sources (the only used) must be compiled,
there is no any template LIB/DLL in the nature...
virtual void BeHappy() = 0;
|
|
|
|
|
vikrams wrote: Is it possible to link STL dynamically to my application?
No, because you should not use STL across library boundaries...without really knowing what you do. First of all is STL not a binary compatible interface, you must compile with exactly the same STL version in all modules/libraries/DLLs. There is probably no linker warning/error if you try otherwise. Secondly allocating memory in one module's heap and deallocating in another will fail, if you do not provide special allocators. In short, there is no easy way to use STL in exported interfaces.
Some more background:
The Old New Thing: Allocating and freeing memory across module boundaries[^]
Hope it helps!
/M
|
|
|
|
|
Dear sir,
Here I would like to find complete C code for Distance Vector Routing Algorithm . So anybody have an idea about this please reply me as soon as possible .
Santanu sarkar .
|
|
|
|
|
GUD KESTO wrote: Here I would like to find complete C code for Distance Vector Routing Algorithm
You are a software developer, aren't you? So, please, read the documentation and develop the software (we would help on that).
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]
|
|
|
|
|
|
Hi..
'm working on my final year(engg) project..
I need to hide my process from the task manager..
developing a remote monitoring utility for a start-up company..
it would be great to achieve this hiding..
coding in win32 using C..
any suggestions as to where to look for would greatly help..
thank yu
|
|
|
|
|
Unless you are writing a virus, this is not a good idea. What if your process has a memory leak ? Or slows down the computer ? You have to let the user decides what he wants to do with his computer. And as far as I know, it is even impossible to hide a process this way.
(And if you are writing a virus, then asking such a question here is stupid).
|
|
|
|
|
Yes, i completely agree with your questioning.
We, two of my team mates and i, are developing a set of plugins- keylogger & screengrabber for a cyber security based company. We are workin as interns. The company 'll be using the project as a utility toolkit for testing purposes, i guess!
I wanted to hide the process so that it would be a more complete product. A more (ethically)professional one.
|
|
|
|
|
Write a Linux application and let it run on another PC. This way your Task Manager won't see your process running for sure...
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]
|
|
|
|
|
ok.. thank yu..
but the problem is that the application being developed is windows specific..
|
|
|
|
|
I can tell you the tricks only, as now I am not using C++ anymore. what ever app is installed in a system, must register themselves(if using a standard deployable package utility) into the system registry. Dont delete their entry point from registry, rather you can alter their entry point from process to services.
Just imagine, have you ever seen any services running inside the task maneger? I guess, no. Every process's entry points contain two main parameter, as name & value. If you change the value from 0 to 1, see what happen...
|
|
|
|
|
ok..
i'll try to do that..
thank yu
|
|
|
|