|
Hi all
I am using cr 10 for showing some reports saved as rpt files. I change the database connection at runtime.
Everything works fine.
But when the report window is opened (this is another window, a modelless) and if the export button is selected, my application remains running on the task manager.
And this happens only on widnows 2000.
All the Crystal report objects are made inside a function and shown on the OnInitDialog of the report window.
I included the craxdrt.h and created
FunctionCalledFromOnInitDailog()
{
IApplication app;
app.CreateDispatch(_T("CrystalRuntime.Application"),NULL)
//I do the rest of the things here, set the datasource of the viewer
//control etc
m_cysApp.DetachDispatch();
}
Any idea whats going on ?
Please help me.
Regards
Shiraz
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Hello
I wonder if there is tutorial/faq/info about how to downgrade a VC++7.0 solution to a VC++6.0 project?
thank you in advance
/Lucian
|
|
|
|
|
|
Hi guys
I've developed a Doc-view app.
My documents have an extension (.mqw)
If I open my app and drag and drop a .mqw file inside it opens correctly.
If I use Open inside my app, the file opens correctly too.
But if I double click in a .mqw file my app give me an unhandled exception
I've already associated the .mqw files to my app.exe
What is the difference between these procedures to give me an error when I doubleclick my .mqw files?
Thanks in forwarding
Doc
|
|
|
|
|
I think that the differences are that you have not implemented the command-line option for the program. When you double-click the file windows does this:
exec <your program="">.exe <file_path>
implement a function that parses the commmand-line options ( remenber the argv and argc in int main(int argc, char* argv?)
|
|
|
|
|
Double click in Explorer uses DDE if your app is already running and you've registered your extension. Have a look at the DDE handler CDocManager::OnDDECommand() which will call your CYourApp::OpenDocumentFile( LPCTSTR lpszFileName ).
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
hello everybody,
i use the following code :
HICON hIcon = LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_PREVIEW));
CButton* pButton = (CButton*)GetDlgItem(IDC_PREVIEWFACT_BTN);
pButton->SendMessage(BM_SETIMAGE, (WPARAM)IMAGE_ICON, (LPARAM)hIcon);
this code is supposed to set the IDC_PREVIEWFACT_BTN button face with the IDI_PREVIEW icon.
the icon is 16x16 pixels, and the button is bigger (in pixels) than my icon (i cannot say how wuch, because the resource editor don't "speak" in pxls).
my problem is that the ison displays quite "well", except the fact that is is much bigger than the button (so truncated).
does anyone know how to display the icon to its real size ?
thanks in advance...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Unable to debug on web-server - error
I installed .NET 2.0,
and
"Unable to debug on web-server error"
begin to appear when I tru to dubug program with VS2003.
What is the reasons ?
How to correct ?
thanks
|
|
|
|
|
In my MDI Application, I have two child frames. I have one dialog Box inherited from CInitDialogBar class. Now, how to integrate this DialogBox with my MainFrm class? I want to toggle between these two child frames and
dialogBox. I have command handler for it, but data stops refreshing when ever i toggle from DialogBox to any of child frame.Otherwise everything is working.
|
|
|
|
|
You may want to look into using CFormView, it's a view that's based on a dialog box.
-- Rocky Dean Pulley
|
|
|
|
|
I am not using CFormView in my code.....though i have
class CWINVIEWSView : public CView in WINVIEWSView.cpp.
What kind of code i have to write?
|
|
|
|
|
hiiii....
i want to enumerate all the resources of a particular application....for eg. a Calculator..
how can i do it ?
regards,
kedar.
|
|
|
|
|
Please look at this article in your local copy of MSDN
Article Path
In Content view->
Plateform SDK Documentation->User Interface Service
->Window User Interface->Resources->Using Resources
there you will find a article -> Creating a Resource List .
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
kedar.dave wrote:
how can i do it ?
By following this link.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I loaded an object in MFC and am geting problems in displaying the object moving slowly!! in the onpaint function, i inserted a while loop and it runs too fast!! tried getch(),to no avail. Can i use setdelay() for such a purpose? any suggestion?
|
|
|
|
|
You can try Sleep(1000);
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
|
Hello,
In my MDI application, i have two child windows and a child dialog Box. I can switch between any two child windows and i have event handler for toggling.
Following is the code-
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//..............
ON_COMMAND(IDM_TOGGLE_WINDOW, OnMenuToggleWindow)
//..............
END_MESSAGE_MAP()
void CMainFrame::OnMenuToggleWindow()
{
assert(isTerminalMode() || isDataMode()|| isFlightAnalysisMode());
CMainFrame::ActivateFrame(SW_SHOWMAXIMIZED);
::PostMessage(m_hWnd,SIZE_MAXIMIZED,0, 0);
if (isTerminalMode())// child window
//setDataMode();
setDataMode(); //child window
else if (isDataMode())
setFlightAnalysisMode(); //dialog Box (child)
else if (isFlightAnalysisMode())
setTerminalMode();
}
Now, all the windows are working properly but as soon as i switch to another window, everything stops working. I can still toggle windows, but
data doesn't get refreshed.
What should i do?
|
|
|
|
|
Hi, I asked earlier about some help with a problem I am having.
I have a dialog based application in which has a Browse for directory call. Thats fine, I have that implemented, when the user selects the folder they want my program to scan it returns the folders path as szFolder.
I have a list control, m_contentlist, which I want to display the contents of szFolder in (directory selected)
Can someone please post code rather than links? That would be very helpful.
Thankyou
Ashman
|
|
|
|
|
Ashman wrote:
Can someone please post code rather than links? That would be very helpful.
Here's a starting point:
CFileFind ff;
ff.FindFile(szFolder + ???);
while (...)
{
ff.FindNextFile();
}
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
How to get file name from a given filepath without using winAPI for both windows and mac env?
|
|
|
|
|
|
#include <string>
std::string strPath = "c:\\blah\\blahblah\\file.txt";
int pos = strPath.find_last_of("\\");
std::string strFile = strPath.substr(pos + 1);
That should do it.
-- Rocky Dean Pulley
|
|
|
|
|
sorry, that first line is supposed to be:
#include <string>
I forgot to remove the <'s as HTML tags.
-- Rocky Dean Pulley
|
|
|
|
|
Hi..
I would like to know how to go about porting a GDI based application from 32bit to 64bit, to run on IA64 (orAMD64) processor with windows xp 64bit beta..
I am aware 32 bit application uses thunking to run on 64 bit OS, but the requirement is to make the application 64 bit complaint. Also, the pointer size is 64 bits and there's no change to be done to the existing data type..
The application to be built with the Beta version of 64 bit libraries..
With this I had proceeded, Let me know If I need to take care of any more thing..
Thanks,
TssP
|
|
|
|