|
|
Hi,
I have a 3D object in OpenGL which I display in multiple view (top, bottom, left and right). Because my object is much longer than thick, I would like to expand the X-axis coordinates for the left and right view.
I only use one display list for all view and views have their own display context. So how can I change the appearance of the X-axis for specific view without rebuilding the display list ??
Thank you guys!
Jean Bédard
Optifor, Inc
Québec, Canada
|
|
|
|
|
I have problem with formview printing. 've downed the file and
try to print out the formview in my mdi application. However,
only i can print out is the control( gray colored ). Actually,
there is image on this control and this program can't print out
image but only control itself. does anyone have the same problem
and solve this problem before?
thanks in advance.
shin
// TODO: Add your command handler code here
CRect rect;
this->GetClientRect( rect );
CDC memDC;
CClientDC dc( this );
memDC.CreateCompatibleDC( &dc );
CBitmap bitmap;
bitmap.CreateCompatibleBitmap( &dc, rect.Width(), rect.Height() );
{
LocalGDI local( &memDC, &bitmap );
this->Print( &memDC, PRF_ERASEBKGND|PRF_CLIENT|PRF_CHILDREN );
}
m_dib.Attach( GDIUtil::DDBToDIB( bitmap ) );
CFormView::OnFilePrintPreview( );
|
|
|
|
|
Hey, question for you network buffs out there. Is there a way to do the equivilant of RunAs programmatically?
I have looked into CreateProcessAsUser and have consistently run into brick walls. I noticed there is a (rather lengthy and convoluted) example of its use on MSDN, but I get compile problems if I try to use it (can't find a certain API it's looking for.)
Any ideas? Or should I use "RunAs" and just pipe the password to it so no user interaction is necessary?
Thanks.
If your nose runs and your feet smell, then you're built upside down.
|
|
|
|
|
I've seen it done many times, and was wondering whether there's an API that makes it happen.
For a Console application, highlight the menu items as you navigate them with the arrow keys in order to make a selection.
Thanks for any insight.
William
Fortes in fide et opere!
|
|
|
|
|
Hi,
How do I set a default value for a radio button(mark one radio button by default) and how do I set a default value in a combo box when the dialog loads.
Karteek
|
|
|
|
|
just check in MSDN for CButton class , Read it in much details. Also check for CComboBox class...The information is there ...
VikramS
|
|
|
|
|
Need some help.
I have created a .dll library for an AI technology and have tested it on 98/2000 & ME OS. Project built using VC++ 6.0. I have someone having difficulty running on XP - what would the problem tend to be - memory handling? Never used XP and do not have it available. What would be so different? Do I need to go to .Net?
Any help greatly appreciated!
Thanks
Mike
http://www.ccoreinnovations.com
|
|
|
|
|
If an app runs on W2k it should run on XP without a problem. The problems you may encounter are:
1) Permissions. Your user, for example, may need to be logged in as an Administrator.
2) Fast user switching. However, if the app runs using W2K terminal services, it should run on XP. (This is usually only a big issue if you used shared memory and global/local named synchronization objects.)
3) DLL Hell. If you are using the good old MFC 5/6 DLLs and they are out-of-sync on the XP box.
(I've written many apps using VC6 that run in all environments. Never had a problem that weren't developer/user errors.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Thanks Joe!
But about the out-of-sync DLL's, how do you fix that!?
Can you lead me to a source?
Mike
|
|
|
|
|
You could compile the DLL statically (which might be a problem if the App is linked dynamically), you can ship the offending DLL with your DLL--as long as they're in the same directory in XP, the local DLL will be used. The final option is create an install package.
To find out if DLLs are a problem, VC6 comes with an applet called Depends.exe. Use this to find your DLL dependencies and then get the versions of the same DLLs in XP and see if, for example, msvcrt.dll is out of date.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
HI guys
There is a really,really easy way to print a dialog WYSIWYG pressing a button inside the dialog?
Best Regards
Doc
|
|
|
|
|
|
Is there any Dependency Generator for VC++?
Input : DSW or DSP file
Output : Displays all the dependencies for that DLL/EXE.
I have used a tool like this before but that's client's proprietary code.
I know you can see the dependencies via "Dependency Walker". But that's helpful if you build the DLL/EXE successfully.
TIA
"Whidbey"..."Orcas"...Roadmap This signature was created by "Code Project Quoter".
|
|
|
|
|
Under VC6, it's called dependency walker. Look under VC Tools. It does not use the DSP or DSW. It looks directly at the EXE or DLL.
-rick
|
|
|
|
|
Hi everybody
I am creating an application using VC++ that runs on a terminal server with 30 end users. The end users will use thin clients as front end machines. The application consists of a main menu executeble that opens other executables depending on the user selection. In order to establish that communication I use named pipes. Actually I use 1 named pipe as the main tube for data transfer. What happens is that sometimes the session of any user may freeze and another user may view his data. As a result I have started suspecting that something is wrong with the method that creates the child process and also that at a certain point one user may "use" the name pipe share of the other. The code that performs the above call is:
int CTransfer::StartTalking(CString szNewProcess, CNamedPipe* m_ServerObject, char *pszBuffer)
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
char szProcess[128];
strcpy(szProcess , (LPCTSTR)szNewProcess);
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
szNewProcess += ".exe";
// Start the child process.
if( !CreateProcess( NULL, // No module name (use command line).
szProcess, // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
TRUE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi ) // Pointer to PROCESS_INFORMATION structure.
)
{
return 1;
}
#ifndef _DEBUG
if (strlen(pszBuffer))
{
DWORD dwBytesWritten;
if (m_ServerObject->ConnectClient())
m_ServerObject->Write(pszBuffer , strlen(pszBuffer), dwBytesWritten);
}
#endif
// Wait until child process exits.
WaitForSingleObject( pi.hProcess, INFINITE );
// Close process and thread handles.
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
return 0;
}
I am thinking that I could do certain things such as:
1. create 1 named pipe per module in order to distribute traffic to more named pipes.
2. use a CreateMutex before the CreateProcess and Release it before the WaitforSingleObject
I will definitely appreciate any opion or help that you might provide.
Thank you for your time
Spiros Prantalos
Miami the place to be!!
|
|
|
|
|
Heloo their i just started c++ n i will wanted to know wich tutorial should i read to learn more about it
tkz again
Guhji
the lost one >.<
|
|
|
|
|
Guhji wrote:
wich tutorial should i read to learn more about it
All?
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
open MSDN and then read it
good luck
hung
|
|
|
|
|
He said tutorials, not reference.
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
You should consider learning english before C++!!
|
|
|
|
|
|
Is there an available method or workaround for manipulating the version information of files external to your own application? I've been having trouble with a couple of vendors updating DLL's but not updating their file versions, which is giving our testing people some real headaches. Any suggestions?
"Few people realize the extraordinary effort that many of us exert simply to be normal."
- Albert Camus
|
|
|
|
|
Check out MSDN.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/file_management_functions.asp
Kuphryn
|
|
|
|
|
The MFC doesn't have a method that will manipulate versions. Most other file attributes are accessible but the version is not accessible via the built-in functions. Has anyone else tackled this problem?
|
|
|
|