|
I have never used this but I would assume you need to do some calculations based on this value to resize your logical page. You then need to scale your output to the size of the new logical page and set your start point for each page to its relative position on the physical page. I usually start with problems such as this by drawing a rough representation on a sheet of paper and figure it out from there.
It's time for a new signature.
|
|
|
|
|
Thanks Richard for the inputs............I will try to do as you have suggested..........
|
|
|
|
|
Hi
I am designing an amplifier where I've used I2C to communicate with two control circuit PICs (pic18f819) and then those PICs are also communicating to an-other PIC (same) via serdata serclck. The pull up voltage is 3.9 on one side of the pull-up resistors and appears 2.5 on the other side on I2c line while on ser line 2.5 on serdata and 0v on serclck. The PCB used to communicate but suddenly it is not communicating now. Is it because of 2.5 voltage appearing on I2C OR 0v on serclock OR thses pull up voltages drops dont matter ? can some one help please. I'm not sure about 2.5v on I2C and also what voltages are necessary for serdata/serclcl line ?
kd
|
|
|
|
|
I really don't think our expert C/C++ programmers can help you with what is clearly a hardware problem.
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
I2C uses four basic clocks START, DATA, ACK and STOP. It is the combination of SDATA and SCLK. Check the impedance and threshold limit of chip to get signal.
-Parthi
|
|
|
|
|
As others have stated you are in the wrong forum but anyway ..... if you are ever concerned about voltage levels in circuit you need to refer to the manufacturer's Data Sheet specifically the the Input Voltage thresholds. It will tell you the minimum voltage that is guaranteed to be recognised as a logic 1 and the maximum voltage that is acceptable as a logic 0. That should answer your question.
Hope that helps
Ali
|
|
|
|
|
Hi,
please tell me how to convert from hex to Ascii.
thanks.
|
|
|
|
|
Is the hex value stored as character strings?
If so use this formula for a 2 digit hex - (16 * A) + B where A is the digit on the left and B is the digit on the right.
|
|
|
|
|
This doesn't make a lot of sense. Hex is just a representation of a number. Is this what you want to do: you have a string containing two characters (in hex representation) and you would like to display the character from the ASCII table ?
If yes, you can use strtoul[^] to convert the number to an unsigned long and then assign it to a char (probably with a cast to avoid a warning).
|
|
|
|
|
|
Hi,
How to add a popmenu to CListCtrl.
When user right clicks on a item in a list control
i want to display a popup menu how to do this?
|
|
|
|
|
|
yaah i know that.
How to know the points (CPoint) of the right click from the list control.
|
|
|
|
|
|
|
Hi,
can i get some code examples in vc++ to install a package or an application, basically a .exe file.....
Thank You
|
|
|
|
|
See here: Deployment[^]
--
"Programming is an art that fights back!"
|
|
|
|
|
Hi, everyone
I want to use database in my application , but when I add #include <afxdb.h> to the stdafx.h, it give me the above error message.
When I change the position of the #include<afxdb.h>, it give me other error message,
error C2146: syntax error : missing ';' before identifier 'ConvertToWin32ALG_ID'
so what is the problem?
the following code is the the stdafx.h file
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#if !defined(AFX_STDAFX_H__3D0D8E67_10EC_4002_9AE7_E8E9AE644C83__INCLUDED_)
#define AFX_STDAFX_H__3D0D8E67_10EC_4002_9AE7_E8E9AE644C83__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif
#define _ATL_APARTMENT_THREADED
#include <afxdb.h>
#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override
//something, but do not change the name of _Module
extern CComModule _Module;
#include <atlcom.h>
//used for token
#include <pkcs11/cryptoki.h>
#include <pkcs11/auxiliary.h>
#define PKCS_LIB_NAME "ST2pkcs11v10.dll"
#define ArraySize 1000
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#include <comdef.h>
|
|
|
|
|
If you want to use MFC you'll have to include afx.h, afxwin.h and maybe some others before afxdb.h.
Cheers,
Ash
|
|
|
|
|
Hi everyone,
I built an mfc application using visual studio 2008 (standard edition) c++ on a windows 7 OS. I've compiled the code as a "Release" build and it works great on my machine, but won't execute at all on any other machine (whether its Windows 7, xp, vista, etc). No error messages or anything. You briefly get the hour glass and then nothing.
I've set the following options:
"Use MFC in static library"
and I've set the Runtime library to "Multi-threaded (/MT)"
Any ideas?
Thanks!
P.S. The .net framework is the same version for my machine as for the others that I'd like it to run on, so that doesn't seem to be the problem.
|
|
|
|
|
Try using Dependency Walker to find out if there is any missing dependency.
Write the log or have messagebox to findout which function it is failing.
--
"Programming is an art that fights back!"
|
|
|
|
|
Hi,
the dependency walker has a question mark besides the following dlls:
GPSVC.DLL
IESHIMS.DLL
Would I try to locate these on my machine and then keep them in same folder as executable?
|
|
|
|
|
Better you can try installing VC++ 2008 Runtime in the target maching and if it fails still, you can try other things like copying DLL etc..
You may get some useful information by checking the system event log as it may have details of what error happened when application failed.
--
"Programming is an art that fights back!"
|
|
|
|
|
Thanks. I thought that by setting it to statically link mfc that all the necessary dll's would be imbedded into the binary, thus avoiding having to install the redistributable. Am I wrong?
|
|
|
|
|
Generally if we link statically to mfc, runtime is not needed to install, but I had doubt it may have the missing component to run.
Please check the system event log once to see if there is any useful info.
--
"Programming is an art that fights back!"
|
|
|
|