|
Also , when i call the g_SoundManager->Initialize() function, I have to pass
the HWND parameter into this function. But I am using console application,
so, what should I pass for the HWND variable?
Console error LNK2019: unresolved external symbol "public: long __thiscall CSoundManager::Initialize(struct HWND__ *,unsigned long)" (?Initialize@CSoundManager@@QAEJPAUHWND__@@K@Z) referenced in function _wmain
Thank You!!
|
|
|
|
|
I think it is missing required Library file
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
No this error comes because the Initialize function is not defined it has not been found in any library included). Make sure this library is included in your project !! (Take a look at the documentation to see which library you need to include).
Second, if your function require a HWND parameter, I don't know if this will work if you pass nothing to it (did the function accept a NULL parameter ?). Take a look at the documentation to see if this can work (I never worked with it so I don't know).
|
|
|
|
|
Hi
all
Our project is in VC++ and in this project we are generating Crystal report(Version 10) using XML file and the XML driver we are using is CRXML 4.2.
Problem is when we instal our project in client PC (there crystal report V10 is not installed) but while instaling our project we are regeistering all depended dlls like cexml19.dll,crxml19s.dll etc. But it not registering in client PC. We are not getting report.
Please any one help me to come out of this problem.
Arun
|
|
|
|
|
What installer are you using. Crystal provide merge modules (.msm) files for their system. They can be used directly in products such as InstallShield.
Given that you add all Crystal (.msm) modules that you are using the client PC ought to be able to show your reports.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hi
Ant
Thank you for your reply.
I think Crystal merge modules are for .NET applications. Ours is VC++ V6 but i don't know much about this merge module.
In install shield we followed the steps that is specified in the link gineb below.
http://support.businessobjects.com/library/kbase/articles/c2014906.asp
Thank U
Arun.
|
|
|
|
|
hi all,
I want to get the List of running applications in the Desktop.
In the TaskManager--->Application there is a list of running applcations..
So how do I get that list using C++?
Thanks in advance..
|
|
|
|
|
USE these api
CreateToolhelp32Snapshot to get handle for PROCESS
then use Process32First & Process32Next to enumerate the process.
MSDN reference of Process32First contain a example for your need
Or you can browse CP/MFC&Visual c++/Thread and process section for more example
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Hi
Can I load an icon file (.ico) from file during runtime? If yes, how can I display the icon on the screen? If no, a bitmap will be loaded. Then can I set the background of the bitmap transparent? And how to do this?
Thanks
|
|
|
|
|
USe LoadBitmap API to load ICON,BITMAP at runtime
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Thanks for answering.
HBITMAP LoadBitmap(
HINSTANCE hInstance, // handle to application instance
LPCTSTR lpBitmapName // name of bitmap resource
);
If I load the ico file at runtime, is that input the file path and file name of the ico file to the the second parameter?
Thanks
|
|
|
|
|
I am Extremly Sorry ,i has told you a wrong api,please forgive me.
the right one is
The LoadImage function loads an icon, cursor, animated cursor, or bitmap.
HANDLE LoadImage(
HINSTANCE hinst, // handle to instance
LPCTSTR lpszName, // image to load
UINT uType, // image type
int cxDesired, // desired width
int cyDesired, // desired height
UINT fuLoad // load options
);
there is small sample for this api,in this api refrence at MSDN
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
how to transfer & receive files thru bluetooth (using OBEX rather using virtual comm) between these 2 devices?
Any idea??
|
|
|
|
|
my picture(bitmap) is external.
how to call this bitmap.
i want to change multiple image in picture control.
can i get.
pls explain me.
|
|
|
|
|
well u can put in many picture controls.....can u be a liitle more specific
u can display bitmaps using the LoadImage() function.....and then u can put it on the screen using BitBlt.....
maybe if u can cite ur prob a little more clearly maybe i can help .....
cheerz
|
|
|
|
|
Hi,
I made a toolbar for Internet Explorer. When I'm testing it on my computer I register it with regsvr32 toolbar.dll. I made an installer for the toolbar.
I don't know how to register the dll after the installation, something like regsvr32. I didn't found anything on msdn.
Do you have any ideea?
Thanks
-----
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
|
|
|
|
|
Ok,
Tell Me one thing Which InStaller are your using to install your COMDLL.
If you are using any WELLKNOWN INSTALLER like Wise,INNo or Install shield,thay aleady equip with this functionality.
if you are creating your own INSTALLER use this api to register your toolbar.dll
ShellExecute(NULL,"open","regsvr32.exe","YOURPATH\toolbar.dll",NULL,SW_HIDE);
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Hi,
Thank you for your answer. I am using the Visual Studio Installer which comes with Visual Studio 7.0.
Thanks again
-----
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
|
|
|
|
|
Florin Ochiana wrote:
I am using the Visual Studio Installer which comes with Visual Studio 7.0.
i never worked on that,if you don't find any option for registrying DLL there, you can opt for ShellExecute One.
Anyway i visited you company WebPAge,Hard Luck ,it under construction
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Yeah, as it usually happens we don't have any time left for our page because of the work we have to do for our clients.
-----
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
|
|
|
|
|
Florin Ochiana wrote:
Yeah, as it usually happens we don't have any time left for our page because of the work we have to do for our clients.
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
THX. !!
I knew it was just a stupid failure... but was not able to find on web and my book... !!!
|
|
|
|
|
Dear friendz....
i would like to know hoe i can change the color of the frame of a picture control placed on a dialog box when a certain event(say onmousemove())takes place??
all suggestionz are welcome.....
thanx in advance...
|
|
|
|
|
plz help!!!!!
HICON hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR1 );
SetCursor( hIcon );
return TRUE;
is a working code coz i have put this in my Dialog based application (Xyz) in a class called CXyzDlg..... that is, i have already added this function "OnSetCursor()".....and the cursor changes......in the main Dlg box but..... i have derived a class from the CStatic Class named it as "CMyClass".....and i have created obcts of it in the CXyzDlg class.....basically these objects i have created by placing the "static control" on the dialog box and then..... thru the class wizard created an object linking it with the picture control of type CMyClass(that is .....SUBCLASSING).....
also in thiz CMyClass i have added the "OnSetCursor()" function as well......and many other mouse functions like "onmousemove()","LbuttonDown()".....etc.....but here when i put in the same code as i had put in the main Dlg box for the "OnsetCursor()".....it does not change!!!!!......y???
heres the code......that i have put in the derived class CMyClass......
#include "stdafx.h"
#include "creamz.h"
#include "MyClass.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CMyClass::CMyClass()
{
m_DragOn1=FALSE;
m_pot1=0;
m_update=TRUE;
}
CMyClass::~CMyClass()
{
}
BEGIN_MESSAGE_MAP(CMyClass, CStatic)
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
ON_WM_MOUSEMOVE()
ON_WM_SETCURSOR()
END_MESSAGE_MAP()
void CMyClass::OnLButtonDown(UINT nFlags, CPoint point)
{
HICON hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR2 );
SetCursor( hIcon );
m_DragOn1=TRUE;
CStatic::OnLButtonDown(nFlags, point);
}
void CMyClass::OnLButtonUp(UINT nFlags, CPoint point)
{
HICON hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR1 );
SetCursor( hIcon );
m_DragOn1=FALSE;
CStatic::OnLButtonUp(nFlags, point);
}
void CMyClass::onmousemove(UINT nFlags, CPoint point)
{
if(m_DragOn1==TRUE)
{
if(m_pot1<62)
m_pot1+=1;
else
m_pot1=0;
if(m_pot1%2==0)
m_update=TRUE;
}
CStatic::onmousemove(nFlags, point);
}
BOOL CMyClass::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
if(m_DragOn1==FALSE)
{
HICON hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR1 );
SetCursor( hIcon );
}
else
{
HICON hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR2 );
SetCursor( hIcon );
}
return TRUE;
}
plz help me out......
thanx in advance.....and thanx for ur intrest!!!!!
|
|
|
|
|
I have a dialogbox application with 4 checkbox and one button.
the checkboxes have variables of type BOOL (m_check1. m_check2...)
When I click the button, how can I detect what check boxes were selected?
Any help will be greatly appreciated
|
|
|
|