|
Good point, must I say that MSDN help sucks then
ComboBoxEx Control Styles
ComboBoxEx controls support only the following ComboBox styles:
CBS_SIMPLE
CBS_DROPDOWN
CBS_DROPDOWNLIST
WS_CHILD
No where does it say it supports in the CreateWindow() CBS_AUTOHSCROLL
Anyways, fixed, thanks
|
|
|
|
|
Hi every body
-I have a program using CAnimateCtrl and i get a little problem here:"When i stop the file .avi by using Stop() function then later i want to resum it but i can't".There are any way to solve it.Thank's
|
|
|
|
|
All right, I give up. There must be a trick to this.
Basically I have this gigantic workspace with projects that spits out little DLLs. Some of the basic DLLs are loaded by another DLL which is finally loaded by the executable file.
What happens when I put a breakpoint is that the Visual Studio spits out warning the breakpoint is disabled.
I already put in all the DLLs under the "additional DLL" under Debug tab in MS VC 6.0, and still no luck.
Any help is appreciated!!
Frank
|
|
|
|
|
|
Yes they are.
Thinking a little bit more about it, I dont know if this matters, but these DLLs are being copied to another directory instead of being used straight from their respective Debug directory. So instead being run from "MyProj\Debug\MyProj.dll" there is a post-build step to "copy MyProj\Debug\MyProj.dll c:\output\dlls". Thus the code loads the Dll like LoadLibrary("c:\output\dlls\MyProj.dll")
|
|
|
|
|
Hi-
What are the rules of MAPI programming when it comes to allocation and deallocation of memory?
Should I delete everything I allocate and everything they give me?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|
|
I need to learn the basics of working with forms. Does anyone know of any C++ source code that can show me the simple stuff?
-- modified at 18:14 Thursday 15th December, 2005
|
|
|
|
|
Have you looked on this site?
http://www.codeproject.com/docview/#Form+Views[^]
Basically you need to create either an SDI or MDI application with CFormView derived view class. To add forms use the dialog resource editor and insert an IDD_FORMVIEW dialog resource. This is a child window derived from the CDialog class which is then displayed in the CFormView. In either the CMainFrame class or the CDocument class you can add a view switching handler to change from one form view to an other.
Mark
|
|
|
|
|
Hi there,
I want to create a simple cpp file in VC++ 6.0 then compile it using the cl command in the command prompt but I don't know what are the steps that I should do to achieve that.
What's the command prompt that I should open and how?
My target is to write:
cl filename.cpp
Can someone please help me out?
Thanks...
Cheers,
Eagle
|
|
|
|
|
You could start here[^].
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
|
I have an app that I want to capture images of webpages from a hidden webbrowser. An example of this is an application at www.rabidsoft.net called CaptureIT. Win32 or .net is fine for the solution if anyone has any information.
-- modified at 16:01 Thursday 15th December, 2005
|
|
|
|
|
Hi all
I have a code that runs a simulation producing numeric outputs of a time series multiple times. I don't know in advance how long is the series or how many times the simulation will run (defined by user at run time). I would like to have the program to write the results out to a file in one column per simulation run instead of a single column where the result of each simulation is separated by some marker.
The code to write the output in one column would be something like this:
<code>ofstream WriteOutput(OutputData.out,ios::app)
for(sim=1; sim<=nsims; sim++)
{
for(t=1; t<=n; t++)
{
y=f(x[t]);
WriteOutput >> y >> endl;
if(t==n) WriteOutput >> "#" >> endl;
}
}</code>
This produces an output like this:
3
4
5
6
#
4
5
6
7
#
Instead, I'd like a code to write an output such as:
3 4
4 5
5 6
6 7
How can I do this?
Thanks!
C.
|
|
|
|
|
|
Yeah that works... I was wondering if there was a direct way to format the output in columns.
Thanks!
|
|
|
|
|
knapak wrote: Yeah that works... I was wondering if there was a direct way to format the output in columns.
If you are not worried about portability issues, you can use SetConsoleCursorPosition
-- modified at 17:16 Thursday 15th December, 2005
|
|
|
|
|
Can you explain? Portability? How do you use SetConsoleCursurPosition? I'm writing to a file not sending out to console.
Thanks
|
|
|
|
|
knapak wrote: Can you explain? Portability? How do you use SetConsoleCursurPosition? I'm writing to a file not sending out to console.
Oops, ignore my post then
|
|
|
|
|
the endl that you are outputting after every number is what causes the newline to be output. Just control when you output an endl .
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Hi,
So far, I did it by setting the initial dir to be C:\ and then sending a virtual click to "Up One Level" button. Do we have any better ways to do that? I think it should have some special string so that CFileDialog could understand and start the dialog with "My Computer" as its initial directory. Unfortunately, I've not found it yet! Please help me.
Thanks in advance.
|
|
|
|
|
Set the initial directory to ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
CFileDialog f(TRUE);
f.m_ofn.lpstrInitialDir = L"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}";
f.DoModal();
|
|
|
|
|
I truly appreciate your help.
Another thing I wonder is that whether this is documented by Microsoft. I'm testing it on previous version of Windows (NT, 9x). Will it be changed in the future?
Thanks so much.
|
|
|
|
|
That CLSID has resolved to 'My Computer' since Windows 95. I see no reason for it to change in the future.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I am not sure of Vista, but it should work the same in 98, 2000, XP and 2003.
|
|
|
|
|
I am developing a web service application using ASP.NET and the MS WSE (Web Service Enhancements). On the server side, there is an asmx file running on IIS wich is able to recieve a SOAP message with a DIME attachment (e.g. an *.gif).
Now I am developing a client that can send those messages with a DIME attachment.
Here's the basic method I am trying to implement:
// ***********
SoapContext *reqC = RequestSoapContext::Current;
DimeAttachment *dimeAttach = new DimeAttachment(
"image/gif", TypeFormat::MediaType,
"C:\\temp\\IMG_3621.jpg");
reqC->Attachments->Add(dimeAttach); //System.NullReferenceException???
// ************
When I am trying to build the programme, the process breaks with an exception, claiming there was a "System.NullReferenceException" (Object reference not set to an instance of an object)in the last line of code posted above.
What does that mean?
The above method is taken from a MSDN example wich is also quoted here on codeproject.com (http://www.codeproject.com/soap/DimeTest.asp). In the examples it is used as a server method (the server sends a SOAP message with a DIME attachment on client request), but I need it as a client method so I changed the SoapContext into a "RequestSoapContext" instead of a "ResponseSoapContext".
I did include all the necessary namespaces and headers, the compiler accepts all commands without throwing any errors, the error appears during build/debug.
The examples are in C# but I am not familiar with it so I need to be doing it in C++.
Thank you in advance for any hints!
P.S: I am not a native english speaker- please excuse my faults.
|
|
|
|