|
Thanks! But do you know how the OS clean is up for me? You mean the OS will keep doing a background search for the memory leak? Am I right? Thanks!
|
|
|
|
|
the OS has a table with all the memory you alocated,
and when your program exits , the OS throws away
that table and the Memory is free for other programs...
|
|
|
|
|
Hi,
I am in the development of implementing the read/write operation in the WIN CE environment through COM Port
I used the following code ...
//==============================================================
gCommHandle = CreateFile(L"COM1:",
GENERIC_READ|GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
bWrite = WriteFile(gCommHandle, "Test Msg", 8, &dwWrite, NULL);
//==============================================================
I could able to get the gCommHandle and the Writefile function also return TRUE after execution
But nothing is getting written in the COM Port...(I observed this by the serial port monitoring tool)
How can we perform read/write operation in COM port in WIN CE OS. Can some one help me in this regard.
Thanks in advance,
~Chinna
Hard Work Never Fails
|
|
|
|
|
Hi all,
I'm trying to do the following :
std::queue <MyManagedClass *> m_qSomeName;
but I get the following compile error
...\Vc7\include\deque(59): error C2847: cannot apply sizeof to managed type 'TestApp1::MyManagedClass'
ok.. so I changed MyManagedClass to a non Managed Class, and now I get a different compile error:
...\TestApp1\MyServer.h(29): error C3633: cannot define 'm_qSomeName' as a member of managed 'TestApp1::MyServer'
Now I'm just trying things out, but is it not possible to use the std::queue template class in managed c++? what about other STL classes?
<EDIT>
Before anyone says, why aren't you using .NET queue/list classes. I'm geniunely curious why I am not able to use STL
</EDIT>
Thanx
|
|
|
|
|
|
outstanding!! thanx very much Nemanja.
Reading through your article and its great.
giving it a big 5.. too bad there isn't a 6
If there's one thing I've learned, it's that life is one crushing defeat after another until you just wish Flanders was dead. - Homer Simpson
|
|
|
|
|
Dear All,
I have a query on following case.Can some body tell the solution for the following:
y = 5++++6*3;
The answer turns out to be -12 when checked with a C compiler
Also, i tried the same on borland delphi 5 and got the answer as 24
How is the processing going on in the above case.
Thanks,
Regards,
Rohit
|
|
|
|
|
Rohit Divas wrote:
y = 5++++6*3;
I would think code that would not even compile. No wonder it is giving you indeterminate results.
"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!
|
|
|
|
|
|
I tried to compile that in some code, and didn't succeed at all.
it didn't like the ++ after the 5. I believe it expects a variable. so i'm not sure how you got that to compile
why are you doing ++++ anyway?
|
|
|
|
|
yes i did the same and it complied successfully on borland delphi 5 compiler,
rohit
|
|
|
|
|
but you said you got -12 when compiled with the C-compiler. It doesn't even look like valid C-code.
If there's one thing I've learned, it's that life is one crushing defeat after another until you just wish Flanders was dead. - Homer Simpson
|
|
|
|
|
I set up a HTTPConnector object like so:
ISoapConnectorPtr Connector;
Connector.CreateInstance(__uuidof(HttpConnector30));
Connector->Property["EndPointURL"] = "http://<someaddress>/soap/upload.aspx";
And it sets the Content-Type do application/dime in the HTTP Header. I require it to be multipart/form-data. No big complaint I thought so added this line:
Connector->Property["RequestHTTPHeader"] = "Content-Type: multipart/form-data";
But instead of changing the current Content-Type it added a new line. ie:
Content-Type: application/dime
Content-Type: multipart/form-data
What I need to know, is how to change the Content-Type in the HTTP Header.
Thankyou
|
|
|
|
|
How to zoom in and zoom out a part of the image in VC++? Pls help...
Aparna
|
|
|
|
|
StretchBlt() is your friend.
"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!
|
|
|
|
|
If you are using GDI+ the Graphics class has a DrawImage function that will stretch or shrink your image.
|
|
|
|
|
I don't seem to have a whole lot of success getting any feedback on the COM forum, so I thought I'd try it here instead.
Here's the question: how do I find out which CLSID was used to create a COM object (as an argument to CoCreateInstance ), assuming I only have a pointer to that object and the object doesn't support IProvideClassInfo ?
Here's a bit of background: I am trying to add filters to a DirectShow filter graph, and the graph itself is quite capable of creating additional filters under the covers. Once created, these filter objects can be enumerated, which gives me pointers to them. What I need to know, though, is what kind of filters were created. BTW you don't really need to understand this part, the point is that I know nothing about the object except for the pointer itself.
Thanks,
M.C.
|
|
|
|
|
My one of class path is C:\OpenH323\Lib
I want to set above path as PATH Environment Variable in Visual C++.
Can any body help me please.
|
|
|
|
|
On the Visual Studio IDE Menu Tools/Options you can set multiple folders for library files.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
I am using Visual C++6. Can u tell me clearly that where it is? & How do I set My calss Path as "PATH environment variable".
|
|
|
|
|
Use function
BOOL SetEnvironmentVariable(
LPCTSTR lpName,
LPCTSTR lpValue
);
defined in winbase.h
|
|
|
|
|
i have finished my program i want to write a install program to let other people use mine ,but before i have never written ,please give me some instructions .
|
|
|
|
|
check out the many installer maker programs available ... they make life very easy
"there is no spoon" biz stuff about me
|
|
|
|
|
|
I use InnoSetup http://www.jrsoftware.org/isdl.php[^]
"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!
|
|
|
|