|
Hi Bob,
I was looking for how to add a file to the Windows MRU. This is done with the SHAddToRecentDocs function as Gary told me - I did it this morning in my app and it works fine.
In my software I handled the MRU manually, since I also wanted to use the list for other purpose.
Thanks anyway.
Yarp
http://www.senosoft.com/
|
|
|
|
|
hi
I'm a student I developed a simple directx plug-in using vc++ 6.
it works fine but when I build the setUp prog using installShield ( the version included with vc++ 6 ) no directx application can recognize my dllplug-in.
this can be done manually after the installation using this command line:
Start -> Run -> regsvr32 ‘my_plug-in path’
how can I include this in my setUp prog so end-user does not have to do this manually?
thanx
Dennis
|
|
|
|
|
Hi,
I'd like to know if anyboby have implemented a project in C++ with mapi to navigate a outlook pst file that contains local folder's email.
Best regards
Lisa
|
|
|
|
|
How can set the printer resolution in my VC++ program without getting user input?
I don't want to use the windows defined dialog that allows the user to pick the resolution. The printer needs to constantly be set to 300 X 300 dpi. This is required to print reports. However, my program prints detailed line graphs and I need to change the resolution to 600 X 600 dpi only when printing my data.
I use:
CPrintDialog dlg(FALSE);
DEVMODE *settings;
//Get Printer diagnostics
if(!dlg.GetDefaults())
{
AfxMessageBox("dlg.GetDefaults() has failed");
}
//Sets printer resolution to 600 DPI
settings = dlg.GetDevMode();
settings->dmPrintQuality = 600;
But this has no affect. Am I missing something, or doing this completly wrong?
Thanks in advance
|
|
|
|
|
bk5151 wrote:
//Sets printer resolution to 600 DPI
settings = dlg.GetDevMode();
settings->dmPrintQuality = 600;
You need to call
ResetDC(PrinterDC,settings);//afterwards
where PrinterDC is printer device context obtained by call to dlg.GetPrinterDC() .
|
|
|
|
|
Thank you, I will try this out.
|
|
|
|
|
I tried this and it did not work. Outside of the print resolution all of my other print features work. So, I don't think that I have it set up wrong. Thank you for your help liquid
|
|
|
|
|
I am writing one application using DirectX in MSVC Visual studio6.0 if i have build my application and Run it using F5 and CtrlF5 the behaviours are different.
When i run my appllication in CtrlF5 mode it crashes (Access Violation)but this problem does not come when i run the same application using F5.
Any help will be appreciated.
Anil Kumar
|
|
|
|
|
when running in Debug Mode ( F5 ), most pointers ( AFAIK ) will be automatically initialized to NULL ( zero); and I also think that normal variables will also be initialized to some default values ( mostly 0 ).
make sure that you initialize every variables to some good default values.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hi MAximilien,
So you mean to say that if Application is run ising CtrlF5 then some variables does take garbage value and may be the possibility of the crash.
Anyway thanks for the reply i will verify in my code all the pointers and variables to initialize NULL and 0s.
thanks
Anil Kumar
|
|
|
|
|
Hi, all.
I have an MFC C++ application which spawns a thread.
At some point the thread performs an XSL transform, but the CreateInstance function for the result node object fails.
HRESULT hr = pXMLOut.CreateInstance(__uuidof(MSXML2::DOMDocument40));
if (hr != S_OK)
TRACE0("could not create xml node");
The same code succeeds if run in the main application thread, is there some restriction for this?
Can it be overcome?
Thanks
Oscar
|
|
|
|
|
|
Hello,
I'm using the CSystemTray (MFC version) class from Chris Maunder and I have a small problem with the little icon in the system tray. Everything works perfect: the messages are routed fine, my popup menu is ok, my app minimizes and maximizes, there is a little square reserved for my icon, but the little problem is that I don't see my icon!?!?!
The behaviour is like when you make your icon completely transparent. You only see a background. I use the standard application icon (IDR_MAINFRAME). It has both the 16 bit and 32 bit version filled with nice colors, but my icon doesn't seem to show itself.
I also tried other icons, but they don't seem to work.
Here is the code that shows and hides the icon:
<br />
m_TrayIcon.AddIcon();<br />
CSystemTray::MinimiseToTray(this);<br />
<br />
m_TrayIcon.RemoveIcon();<br />
CSystemTray::MaximiseFromTray(this);<br />
Did anybody experiance the same problem?
I also got the blogging virus..[^]
|
|
|
|
|
The only thing I can think of is to make sure you are passing a valid HICON to CSystemTray::Create(). I can repeat the behaviour you see by passing NULL as the HICON parameter.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Thanks for your reply! The problem was that the call to ::LoadIcon() failed. I was passing an invalid HINSTANCE parameter. I now use the CWinApp::LoadIcon() which works fine.
I also got the blogging virus..[^]
|
|
|
|
|
Hello,
I'm writing an app which intercepts dial-up attempts.
I've got a dll which is automatically loaded whenever a process loads RasApi32.dll.
This way, any call to RasDial is intercepted - and I verified this works.
But if I try to connect using Dial-up networking, the interception doesn't occur. Hence, I presume it doesn't use RasDial. I tried to intercept both RasDialA and RasDialW (although this last one shouldn't be implemented in Win98), and also an undocumented RasRial16 I found using the Dependency Walker on RasApi32.dll.
Does anybody know what it uses to establish dial-up connections?
I saw that there are other functions in RasApi32.dll which could be used for dial-up connections: RnaUIDial and RnaImplicitDial, but these are undocumented api, and I don't know their prototype - so if someone knows the prototype, any help is welcome.
Thanks
Antonio
|
|
|
|
|
|
This doesn't solve my problem.
My first attempt in detecting dial-up connections was to use RasEnumConnections - the problem is it detects the connection AFTER the connection is established, but I need to detect it BEFORE the number is dialled.
Anyway, tnx for the info.
Antonio
|
|
|
|
|
|
Just as the previous one. This application monitors dial-up connections after the number is dialled. Too late for my needs.
Tnx
Antonio
|
|
|
|
|
Hello:
Someone knows how get the state of the menu shadow???
I'm working on a Owner Draw menu and i draw the shadow myself but it raise a conflict with the Windows shadow and i need to know when windows is using the shadow or not
Thank you in advance
|
|
|
|
|
Hi,
There is a problem, in executing a SQL query. After executing SQL query i want the result in an Object. My SQL query is something like this
SELECT TOP 1 '1234' AS Code, '211' AS Operation, 2 AS Source, 89 AS Destination, FROM xyz where xyzno = 10
How can i executing this SQL query and find the result of this query in an object. I am using VC++6.0 and my database server is Microsoft SQL .
if there is some code sample then its better.plz help me!!!!!!!!!!
Thanks for all
Regards
Rajan
|
|
|
|
|
Maybe you can use CDatabase and CRecordset ? I know you can use SQL instructions while opening a CRecordset that will then contains all the selected records. Take a look at CRecordset::Open
|
|
|
|
|
I have had good results using this project here:
http://www.codeproject.com/database/caaadoclass1.asp
They are very fast too.
|
|
|
|
|
I want to use WinCVS as my version control tool in the visual Studio 2003 .net.
I do not want to use it in an integrated manner (Jalindi Igloo is often suggested but do not want to use this). I will run WinCVS as a separate program and check-in and out as required.
What I want to know is which files will I have to import to allow me to reproduce a project? Some of the extensions taht may be cause for concern is *.resources, *.pdb, *.projdata, *.suo ... there is s along list but what to a really need?
What I want to know is what i need to put int the .cvsignore file?
Thanks,
Liam
|
|
|
|