|
I tried that article but it looks not good. If we do like that the bar looks like as some thing we attached to captionbar, is there anyother way to do it?
|
|
|
|
|
Hello,
i have an problem with the memory management of my program, (i think)it use to much of my RAM!!!
When i open the task manager, i see:
Memory usage | Maximum memory usage
35.856K 54.296K
ok, with the first value i agree, but a cant agree with the maximum memory usage !!!
Why is the differece so big, produce my application maybe memory leaks, or what can be reason for that???
Can someone explain me this please!
thanks in advance!
break;
|
|
|
|
|
Have a look at this article[^] and things should clear up for you.
Hope this helps
--
Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998 "...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above
|
|
|
|
|
Thanks for the link, i read it now!
regards
break;
|
|
|
|
|
Hi
I want to convert my existing project in VC++ to Unicode enabled.for this i changes datatype from char * to wchar_t*, fopen to _wfopen but there is error as
_wfopen' : cannot convert parameter 2 from 'char [2]' to 'const unsigned short *'
I change all required setting for unicode.
M.Atul
|
|
|
|
|
I think if your _wfopen function looks like this:
_wfopen(. . ., "r");
then you have to change it to this:
_wfopen(. . ., L"r");
I hope this helps.
|
|
|
|
|
In many of the examples given in CodeProject regarding Skinning of ComboBoxes, I have noticed that if the combo box has too many elements, then a scroll bar is shown which is not skinned.
How do we skin the scroll bar along with the combobox?
Cutebug
|
|
|
|
|
Hi frinds,
In my project i am not getting .pdb file in Debug Folder but its generating old Project .pdb file.From this i was not able to debugg my code.
I Guess problem with Setting.Anybody who helps me out regardsing this problem.
|
|
|
|
|
Hi all
i have make a ActionMovie program to run avi movies,
how can i ratate the video,i need that function;
Thanks.
|
|
|
|
|
you can use "Open CV" its open source library of intel
in this library you can found function for video and image processing.
|
|
|
|
|
currently i am developing a program which uses a deep search loop, story is similar to search a coin along all points of roads in a city.
the function works fine for a small city, but once the city is big and contains more roads, the function crashed.
the function looks like:
//--------------
void FindSomething(...)
{
//first line
/*code
......
Code*/
//crash line just before call next search
FindSomething(...);
}
//-------------------
when the function crashes, I detect crash point, which is just before calling next loop but not enter the function (not crashed at //first line).
i am wondering why it crashes at there? that line is empty before I add debug code.
I suspect that a search loop can not go to too deep otherwise system can not controls it over (or heap issue?).
I detected the loop goes to around 20,000 times at crash time, it is not too far.
could you explain why and any help?
|
|
|
|
|
may be that your recursive search is too deep ...
Did you try to increase the stack size in the project > settings > link options
|
|
|
|
|
(1) which one is exactly for this?
.../Customer/Link incrementally?
(2)what is strategy used by Windows-Paint to fill picture? when I draw complex roads to simulate my situation, Windows-Piant fills all roads properly.
If i can "fill" as Windows-Paint does, my search will be fine.
any suggestion?
|
|
|
|
|
|
hi all i have a simple (but vital for me) question .
in a dialog box when you press ESC what happends? which function runs ?
thanx
|
|
|
|
|
|
HI,
How many threads will be there in a normal WIN 32/MFC application?
My understanding is there will be 2 threads.
Thread 1: Thread start from WinMain() and continously checking for messages and dispatches them to windows procedure.
Thread 2: Windows Procedure thread.
Am I right?
|
|
|
|
|
No, there is only one thread. That's why if you start a lenghty process in one of your function, your appliation will freeze: it won't be able to respond to messages (like WM_PAINT)
|
|
|
|
|
Hiii,all
I need MFC Internals by scot wingo if anyone having ebook copy of this ,please send it to me on abhi_bhopale@rediffmail.com
Thanks ...
There Is Nothing Right & Wrong
|
|
|
|
|
abhijit bhopale wrote: I need MFC Internals by scot wingo if anyone having ebook copy of this ,please send it to me on
And why do you think anyone would here would help you steal
Excuse is a word that human beings came up with to hide from the potential of failure and in doing have robbed themselves of the grace of success.
Code-frog in lounge
|
|
|
|
|
Sorry for that...but i am needed!!!!!!!!!!!
Thanks for your kind reply.
There Is Nothing Right & Wrong
|
|
|
|
|
I take it you were unsuccessful in contacting Scot Wingo and asking him where you could purchase said book.
See here. It's not an eBook, though.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I want to run an exe(say for eg: Calculator) from the windows service when it started. In the OnInit() I have used CreateProcess function, toget the exe path from the command line argument. My problem here is that, Exe and service is running in task manafer after I started the service, But I couldnt see the application window(Calculator) visible to user. After getting some valuable suggestion from this site, I replaced CreateProcess function with CreateProcessAsUser() function to get the window. But Still the same problem exists.
Here is the code I place in the Init menthod
BOOL b;
HANDLE hToken;
HANDLE hNewToken;
b = OpenProcessToken(GetCurrentProcess(), TOKEN_ASSIGN_PRIMARY|TOKEN_DUPLICATE, &hToken);
b = DuplicateTokenEx(hToken, TOKEN_ASSIGN_PRIMARY|TOKEN_ALL_ACCESS, NULL, SecurityImpersonation, TokenPrimary, &hNewToken);
b = CreateProcessAsUser(hNewToken, NULL,ArgPBU,NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS | CREATE_NEW_CONSOLE, NULL, Cwd, &si, &m_piPBU);
CloseHandle(hNewToken);
-----------------------
Thanks in advance.
Rgds.,
Surendran N
|
|
|
|
|
I have been working with this problem recently, in Windows Server 2003.
I started a GUI app as a service (with XYNTService), but I couldn't see the app window either.
I found out that the only account that could interact with the desktop is (at least in 2003) is services running under Local Account.
I tried it, but as expeced, the Local Account cannot access the network.
I ended up with doing an autologin to the preferred user account, then autostart the GUI app.
The biggest drawback is that if a user performs a logoff, the app is closed, so I had to make a Windows wallpaper saying: "Don't logoff, just do a "lock computer".
I'm really interested in a better solution, I really hope you will get a better answer than this one.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
When you create your service via call to CreateService, be sure to include the SERVICE_INTERACTIVE_PROCESS. This will allow your service to interact with the desktop.
::CreateService(
hSCM, m_szServiceName, m_szServiceName,
SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS,
SERVICE_AUTO_START, SERVICE_ERROR_NORMAL,
szFilePath, NULL, NULL, _T("RPCSS\0"), NULL, NULL);
|
|
|
|