|
Hello!
Take a look maybe at DirectX API, but probably You will not find interesting functions there. Look at http://sourceforge.net , make some searches over net.
Probably not very helpful, but anyway :P
|
|
|
|
|
Hi ALL.
How i can open doc file in IE Broswer? I don't want to use any scripting language. can any point me in right direction?
Thanks in adavnce
|
|
|
|
|
Maybe you could open a instance of IE programatically along with the URL to the doc file?
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
<br />
ShellExecute(NULL,<br />
"open",<br />
"c:\\program files\\Internet Explorer\\IEXPLORE.EXE",<br />
"c:\\test.doc",<br />
NULL, <br />
SW_SHOWNORMAL); <br />
greatest thing is to do wot others think you cant suhredayan@omniquad.com
|
|
|
|
|
Hi Suhredayan,
When I try to use the ShellExecute() function, Its open a new instance of word and open c:\\test.doc and not in IE Window.
I am using IE6 Browser and having word2000. Does it depends upon version of either IE or Word ??
Again thanks in advanace
AL
|
|
|
|
|
Are you sure you specified 3rd parameter as "IEXPLORER.EXE"
greatest thing is to do wot others think you cant suhredayan@omniquad.com
|
|
|
|
|
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,
|
|
|
|