|
Thanks.
Roger Allen wrote:
To your question: Does it really matter what output size the printer file is before sending it to the printer?
I see that the amount of print data send to my printer is over 163MB. And when I try to print a 'pdf' file, around 400MB data is send. How can we reduce this? Kindly help
~Thanks
Vini
|
|
|
|
|
I have to convert a command to be sent to a piece of hardware from hex to char... i've done this in the following way and it works in vc++6 but not in vc++7 ?? it compiles fine in both but the command is different... anyone got any ideas why ??
CString csTrigger
csTrigger.Format("%c%c%c%c%c%c",0xFC,0x06,0xC3,0x00,0x04,0xD6);<br />
any ideas would be appreciated..
Regards
|
|
|
|
|
If I understood you correctly, you want to display the given hex digits as a string representation. If this is the case then you need to use the %X format.
<code>csTrigger.Format("%X%X%X%X%X%X",0xFC,0x06,0xC3,0x00,0x04,0xD6);
</code>
Why your sample code would change behaviour on VC6/7 I haven't got a clue!
I Dream of Absolute Zero
|
|
|
|
|
Thanks for responding... i need to use the %c to build up a string of characters from the hex values. like i say it builds in both but the conversion is different... i have tried checking the char sets etc but cannot find what is wrong. if you build a very basic project in both and put the line of code in both and step thru it, if you check the contents of the string you will see the differnce ?????
|
|
|
|
|
I'm puzzled because I have tried it (on VC6 and VC7.1) and they both behave as expected (displays 'üÃ').
Remember that the character string you are trying to build consist of these ASCII value: 0xFC,0x06,0xC3,0x00,0x04,0xD6. This equates to:
ASCII: 252, 6, 195, 0, 4, 214
First off, all of these ascii values does not map to 'regular' characters. 0x6 and 0x4 are non printable characters, and 0 is the null terminating character, so your string will stop at 0x00, resulting in the three letter output I gave above.
Unless you've done something else in your code, this is how it should execute. What is the output on your VC6 compilation?
I Dream of Absolute Zero
|
|
|
|
|
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
|
|
|
|