|
Yes,
Here this is what i am doing
ShellExecute(NULL,"open","c:\\program files\\Internet Explorer\\IEXPLORE.EXE",
"c:\\test.doc", NULL, SW_SHOWNORMAL);
Its strange thing that if test.doc is not on the disk, Its gives error Dialog Box cannot find file:///c:/test.doc, MaKe sure that path is correct or Internet address is correct.
Also there is no iexplore.exe process(which is swapn by ShellExecute function) running in task manager.
Thanks once again
AL
|
|
|
|
|
I have a dialog with a listbox control and a edit box, so when the user selects a listbox string the edit box has to be update. my question is, how can I know (which message) that the user has selected a string?
I'm using visual c++ 6.0 without MFC, only winapi32.
thanks
Christian
|
|
|
|
|
|
the link should be
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/listboxes/usinglistboxes.asp
Sorry About that.
|
|
|
|
|
How to add and delete items in combo with out MFC...
ASHU
|
|
|
|
|
Look into CB_ADDSTRING and SendDlgItemMessage()
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Is there any hook handler sort of thing for Registry ?
How can i kow if some application is trying to access windows Registry ?
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
|
Hello,
Use Norton Utilities ( Registry tracker) or There is free code on CP for registry tracking!!!
regards
Balkrishna Talele
|
|
|
|
|
Dear Friends,
In case of rich edit control, the line break is done by the control itself i.e when the maximum limit of horizontal characters is reached, the control automatically transfer the caret to next line and do vertical scrolling.
I like to "reverse" the default behaviour according to which the control does line break . The control does line break from the right side no matter what allignment we are using. I like the control to make line break on the left side. How can i do so ??
|
|
|
|
|
i wish to show user-name and product code in the about dialog box. the function used for this task is msigetproductcode() and msigetproductinfo(), could you please tell me, exactly what parameters should i pass into the function.
the prototype is
UINT MsiGetProductCode(
LPCTSTR szComponent,
LPTSTR lpProductBuf
);
what does this szComponent refer to and what value should i pass.
never say die
|
|
|
|
|
Hello Friends ,
i am doing Network Monitoring project on VC++ projetc ..from that program i am able to capture all the packets passing through the system , the problem i am having is i don't know how to store the captured packet .
Since large amount of packets are coming i don't know how to store the captured packets .. if any body knows how to solve the problem pls reply regarding it..
|
|
|
|
|
Can anyone please tell me what is wrong with my header file?
<code>
#if !defined(AFX_MAINFRAME_H__116D2E6E_EBDF_11D5_B2CF_0050BAD6ADCA__INCLUDED_)
#define AFX_MAINFRAME_H__116D2E6E_EBDF_11D5_B2CF_0050BAD6ADCA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MainFrame.h : header file
//
#include <ddraw.h>
#include <atlbase.h>
/////////////////////////////////////////////////////////////////////////////
// CMainFrame window
class CMainFrame : public CWnd
{
// Construction
public:
CMainFrame();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
protected:
virtual void PostNcDestroy();
//}}AFX_VIRTUAL
// Implementation
public:
void display();
bool Create();
virtual ~CMainFrame();
// Generated message map functions
protected:
IDirectDrawSurface7* bitmap_surface(CString filename);
void Cleanup();
void InitDD();
//{{AFX_MSG(CMainFrame)
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CComPtr<IDirectDraw7> m_pdd ;
CComPtr<IDirectDrawSurface7> m_primary ;
CComPtr<IDirectDrawSurface7> m_offscr ;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRAME_H__116D2E6E_EBDF_11D5_B2CF_0050BAD6ADCA__INCLUDED_)
</code>
I get compilation errors like directdraw7 is not a valid identifier etc
|
|
|
|
|
Hi... can anyone tell me how to link to another dialog... like i created a dialog and there is a next button.... how do i link to the other dialog...?
also.... i wanna create a drop down menu but i need to load the contents from a text file.... how do i go about doing that?
Regards,
ColdStream
Bëw@®È †h3 H@x0r W|+Hįп…
|
|
|
|
|
you can create wizard for this.
you will have to use CPropertySheet and CPropertyPage classes. Search for msdn "Creating Wizards" in msdn.
For menu
cmenu mymenu
mynenu.cratepopmenu()
mymenu.appendmenu()
mymenu.trackpopmenu();
you will have to use these theree functions. in appendmenu function, third parameter is a name of menu item, which can read it from a file using CStdioFile class
never say die
|
|
|
|
|
erm... I can't seem to find those classes either in my project or as a #include file....
I also can't seem to find one that is related to me in MSDN....
Al Little Info:
I'm trying to make a program for my dad. he wants to stock-take all the times a supplier "re-stocks" and then calculate the amount owed to the supplier...
So i created the main dialog, where basically you choose from a drop down menu the supplier, and then you choose from four radio buttons whether you want to add, delete, view or compute the data... For the radio buttons i've got that working because OnClick i made it assign a certain variable according to th choice of what to do.... now, all i need to do, is noe how to go to another dialog, so that i can finish the script... also, i need to noe how to get data from a txt file to input the suplier's name to the drop down menu, and also so that i can show the info of that supplier when my dad chooses to go to the second dialog...
Thanks in advance,
ColdStream
Bëw@®È †h3 H@x0r W|+Hįп…
|
|
|
|
|
OPENFILENAME_SIZE_VERSION_400 is a constant used in OPENFILENAME structure (lStructSize member variable) but it seems it's nowhere in my PC including all .h files from Visual Studio.
Whatever... I hope it's an exception and someone could tell me the numeric value for it so I can use it in my app.
If you are so kind...
TNX!
|
|
|
|
|
OPENFILENAME_SIZE_VERSION_400 is defined in <commdlg.h>
Here are couple different code snippets from <commdlg.h>
<code>
...
#ifndef CDSIZEOF_STRUCT
#define CDSIZEOF_STRUCT(structname, member) (((int)((LPBYTE)(&((structname*)0)->member) - ((LPBYTE)((structname*)0)))) + sizeof(((structname*)0)->member))
#endif
...
#if (_WIN32_WINNT >= 0x0500)
#define OPENFILENAME_SIZE_VERSION_400A CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)
#define OPENFILENAME_SIZE_VERSION_400W CDSIZEOF_STRUCT(OPENFILENAMEW,lpTemplateName)
#ifdef UNICODE
#define OPENFILENAME_SIZE_VERSION_400 OPENFILENAME_SIZE_VERSION_400W
#else
#define OPENFILENAME_SIZE_VERSION_400 OPENFILENAME_SIZE_VERSION_400A
#endif // !UNICODE
#endif // (_WIN32_WINNT >= 0x0500)
...
</code>
Hope this helps,
|
|
|
|
|
I actually have two copies of <commdlg.h> One copy is in c:\Program Files\Microsoft SDK\include and the other is in c:\Program Files\Microsoft Visual Studio\VC98\Include. I did compare the two and found that there're not the same. I'm sure the reason why you're not finding the OPENFILENAME_SIZE_VERSION_400 constant. Try downloading the MIcrosoft Platform SDK
Hope this helps,
|
|
|
|
|
hi
i want write unicode text(arabic) in button control
(VC++ .NET) how do i do it?
sincerely
|
|
|
|
|
I am in the process of making a form with VC++. How would I make the form a child window of another application? What I am trying to do is make my form the child window of Counter-Strike. If Counter-Strike is minimized, the form will be minimized with it, and the form can only be moved around within the Counter-Strike borders. How would I go about doing this? I have been looking and asking around for some time now, and haven't found anything, so I'm guessing this isn't going to be easy? Any help would be appreciated.
Dev578
|
|
|
|
|
You would need to inject your code (in the form of a DLL) into the CS process before you can create windows. THere are articles here on CP on this subject (in fact I think one is on the front page in the top 5 most popular articles)
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber New v2.0.1! | RightClick-Encrypt
You cannot stop me with paramecium alone!
|
|
|
|
|
...and this which will get your StemId banned since Steam will think that you are trying to cheat.
And if the paths that I have followed/have tread against the flow/there is no need for sorrow
I am coming home
Return, Crüxshadows
|
|
|
|
|
Hi,
I want to create a server that listens on a particular port for clients.
Once the client connects, the server will send data.
I have created
CAsyncSocket serverSocket;
serverSocket.Create(8000);
serverSocket.Listen(1);
//In function OnAccept
..OnAccept(int nErrorCode)
{
serverSocket.Accept(sendSock, NULL, NULL);
.
.
}
My Problem is OnAccept never gets called, when I start up my client
Any help!!!!!!!
thanx
Gaurav
|
|
|
|
|
CAsyncSocket clienSocket;
clienSocket.Create(8001);//or any integer
clienSocket.Connect(8000);
execute this code on a click event of a dialog box then the onAccept of server will get executed automatically.
its better derive to 2 different classes from CAsyncSocket as CMyClientSocket and CMyServerSocket instead of directly using the object of CAsyncSocket.
never say die
|
|
|
|