|
You will still have to wrap quotes around the contents of m_szFile because it is a path that contains spaces.
|
|
|
|
|
Thanks a lot.
The problem already solve.
|
|
|
|
|
There's nothing wrong with the ShellExecute() statement. Look at how firstproject.exe is handling command-line arguments.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Can you tell me more about this sentence
"firstproject.exe is handling command-line arguments"
|
|
|
|
|
Such as?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I use App wizard create first project.exe, I don't know how the program work when I call it to open file.
|
|
|
|
|
Hi,
I have a doc/view app, main menu (IDR_MAINFRANE) and another menu (IDR_POPUPMENU1).
What i'm trying to accomplish is adding menu IDR_POPUPMENU1 as submenu to one of the
menu item in main menu.
I'm doing it in following way in OnUpdate() :
<br />
CMenu csm;<br />
csm.LoadMenu(IDR_POPUPMENU1);<br />
<br />
VERIFY(pCmdUI->m_pMenu->CreatePopupMenu());<br />
pCmdUI->m_pSubMenu=&csm;<br />
and needless to say, it doesn't works...
can anyone help me out?
Thanks...
|
|
|
|
|
I use code from here[^] to merge two menus.
But I do TrackPopupMenu() with the result. This may be different, though the code claims it can handle top-level menus..
Failure is not an option - it's built right in.
|
|
|
|
|
Hi all,
I am having a dll with Dialog as a Resouce. I have created a Class for that Dialog also.
for example :
if Dialog Class is "one"
in the DLL Function
DLL Function()
{
one o;
o.DoModel(); // Here not populating the Dialog.
}
I then start debug the DLL. It is giving error in
BOOL CDialog::Create(LPCTSTR lpszTemplateName, CWnd* pParentWnd)
{
...
...
#ifdef _DEBUG
if (!_AfxCheckDialogTemplate(lpszTemplateName, FALSE)) --> here is the Error
{
ASSERT(FALSE); // invalid dialog template name
PostNcDestroy(); // cleanup if Create fails too soon
return FALSE;
}
#endif //_DEBUG
}
I am not able to Load the Dialog in the DLL. Please help me out.
Uday kiran
|
|
|
|
|
before calling the function to display, you need to call the method AFX_MANAGE_STATE( AfxGetStaticModuleState();
|
|
|
|
|
Did you this code on the first line of your function
AFX_MANAGE_STATE(AfxGetStaticModuleState());
|
|
|
|
|
Hi all,
at a certain place of my code i test the controls of my view on the RuntimeClasses.
If they are CEdit i make a special operation ...
At the View i send the variables (as value, not as pointer) to this function,
the function is MyDDX_Control which executes some operations before the variable of type CEdit or CStatic goes to the real DDX_Control-Function.
Already before i send the CStatic variables (in my case CFontStatic) to MyDDX_Control i check them
via the Watching-Tool
the first Label is correctly of type CFontStatic,
the second Label (also declared as CFontStatic) is as value of type CFontStatic and if i check
it as pointer with the watcher, the type is CCustomerView ( The Class-name of the view where the control is located ...
I've nothing changed into the source code appart some definitions.
I put into the class-header a blank-definition of classes which appears in this class and the include of the real header of the pointers into the .cpp
class xxx;
public class yyy
{
public: xxx *var;
}
but appart of these changings i've nothing changed.
Is it possible that those changings provokes errors like this?
Big thanks !!
|
|
|
|
|
I saved the source code and restored old ones.
With the old source codes it works...
Now i have a lot of checks to do :S
|
|
|
|
|
ya I see your problem!!!
your class xxx is too explicitly rated and class yyy has denied it access, as she wants to be wined and dined first, and talked to like how was your day dear....no wham bam thank-you ma'am.....no sir class yyy is too classy for that!!!
-- modified at 16:10 Thursday 12th July, 2007
Yours Truly, The One and Only!
|
|
|
|
|
I have developed a server and client application for lan monitoring.The problem is that I have to change the permissions of of my client application for all users, but changing permissions in all the computers is hectic task(when we have a large no. of computers connected to server). so I want to cahnge permissions from server only without going to all computers.
Is there any application to do this.
please help urgently
|
|
|
|
|
Be patient while asking a question and Do Not cross post across the forums.
People do help you here but asking them to post answers urgently is not a GOOD idea.
Can you post some details about the working of your application and what do you exactly want to achieve. Specific questions will help you to get the answers more rapidly.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I regret that i posted the same question in many forums.
my software is related client- server relationship in which server appication runs in the server and client appication in the client computers.whenever any user login in a particular computer in the lan that pc with user name will be displayed in the main listbox of the application that is running in the server in order to administrate the whole LAN. whenever any user login to the computer that client application extracts the server ip address from registry as i am using the 2 or 3 registry keys. the problem is not with administrator account as it has permission to access the registry values but the problem is with local users who have no such permissions.
so i want to set permissions for those 2 or 3 registry key values as "full control" for all users so that any user login , he can be displayed in the main window of the server appication running in the server.
so please help
Rahul Singhal
|
|
|
|
|
rahul_31366 wrote: I have to change the permissions of of my client application for all users
This is usely no good design. But I reckon it depends on what you are trying to achieve. Any more detail ?
|
|
|
|
|
Hi, I'm a newbee in programming world and I learn to program in C++ by analyzing source codes. I don't know whether this is good idea but... Anyway the reason why I posted this message here because I have a problem. Whenever I download someones source code ( mainly simple games like tetris) there is included header file called graphics.h. When I compile this source code it reports me that it can't find such header file. What is the problem? I mean I know that i don't have such header file but why? I'm using Visual Studio 6 and VS 2005.
|
|
|
|
|
Do you have this file on your computer?
|
|
|
|
|
You cannot find graphic.h when you try to compile with visual studio because it is a borland extension. Microsoft uses a different one, so is gnu etc etc.
Try compiling with Borland Builder it should work...
Downloading someone's source code and trying to compile it with vis studio is not enough. You have to take into account which platform was used to write the program. For example you could try download a game which was written for Linux and try to compile it in visual studio. It will most certainly fail because it will use libraries and extensions that were only developed for the linux system.
|
|
|
|
|
I think graphics.h is a part of Borland Turbo C++. It does not come with MS Visual studio.
You could install Turbo C++ 3.0 etc to compile the code.
Also you could port it to gcc to run on *nix based systems:
http://www.sandroid.org/TurboC/[^]
this is this.
|
|
|
|
|
I am trying to capture a video from web cam but I am getting error 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
Can any one help me how to use DirectShow. I have already include the Dshow.h and Strmiids.lib. but still I am geting error message
S.Yamini
|
|
|
|
|
Did you sww that forum,I test ICaptureGraphBuilder2 with my compiler when I include that headers file it doesnt any problem,whats your compiler?
|
|
|
|
|
If it is working for u it is great to hear that. I am using visual studio 6.Can i know what complier u r using and what header u have added to it.
S.Yamini
|
|
|
|