Forum: C++ May 7th, 2008 |
| Replies: 7 Views: 6,122 The WM_SHOWWINDOW message is sent to a window when the window is about to be hidden or shown.
I suspect the window you are trying to hide processes this message and prevents itself from hiding.
... |
Forum: C++ May 7th, 2008 |
| Replies: 7 Views: 6,122 Does it happens with all the Windows or with any specefic Window ?
Are you trying to hide any window which you have created or any other applciaiton's Window ? |
Forum: C++ Feb 5th, 2008 |
| Replies: 6 Views: 1,499 What is the error? You can always redifine _WIN32_WINNT as per your target OS |
Forum: C++ Jan 29th, 2008 |
| Replies: 6 Views: 1,464 Hello Jason,
Simply speaking you cannot execute any application on a remote machine. There are many problems doing this. Apart from the implementation limitations there are some major security... |
Forum: C++ Jan 3rd, 2008 |
| Replies: 4 Views: 767 What is the error? Linking errors are different than syntactical error one can't find them looking at the code. |
Forum: C++ Jan 2nd, 2008 |
| Replies: 5 Views: 1,309 You need to catch the exception. You need to write a catch block. If you let OS to handle your first chance exception it is going to simply terminate the process because OS does not know which way... |
Forum: C++ Jan 2nd, 2008 |
| Replies: 5 Views: 1,309 @obscured47 You can do anything once you catch the exception.
Why do you want to throw an exception to pause the execution? There could be better ways to do that.
Can you post small segemt of your... |
Forum: C++ Dec 28th, 2007 |
| Replies: 16 Views: 3,076 I believe we are confused in Initialization and declaration.
int i ; // declaration
int i = 10 ; declaration + initialization
i= 15 ; // assignment
You cannot only do initialization... |
Forum: C++ Dec 28th, 2007 |
| Replies: 16 Views: 3,076 Once you declare an array you just reserve some amount of memory. This memory contains garbage. if you try to print all values of the array just after delaring it you will see just garbage. See... |
Forum: C++ Dec 26th, 2007 |
| Replies: 30 Views: 2,947 See this
http://www.daniweb.com/code/snippet491.html
I wrote it long back.. There are many typos but you can see how do I document header of a function or a file.
However, this time your... |
Forum: C++ Dec 25th, 2007 |
| Replies: 3 Views: 1,321 @phalaris_trip
You can not do this.
void LoadFile (std::string filename, std::string key=filename)
{
//blah
}
default parameter should be known to the compiler while compilation. |
Forum: C++ Dec 25th, 2007 |
| Replies: 9 Views: 1,193 This is a classic example of Encapsulation in C++.
You hide data and code by using access modifiers private and protected.
If you don’t explicitly write an access modifier, by default it is... |
Forum: C Dec 24th, 2007 |
| Replies: 7 Views: 1,212 PUBLIC _PROTOTYPE indicates folowing routine is a System call handler. Systems-tasks are more like a hardware abstraction. The call_vec table is an array of function pointers that is indexed by the... |
Forum: C Dec 24th, 2007 |
| Replies: 7 Views: 1,212 >>PS2:: merry christmas to all!!
Same tt you! |
Forum: C Dec 24th, 2007 |
| Replies: 7 Views: 1,212 call_vec is a array of pointer to functions which pass void and return int.
PUBLIC _PROTOTYPE should be some typedef. |
Forum: C++ Dec 24th, 2007 |
| Replies: 4 Views: 1,504 It was easy, you will learn all these very soon.
You know for me it is very true. "There is always Room for Improvement :)"
Please mark the thread as solved. |
Forum: C++ Dec 24th, 2007 |
| Replies: 4 Views: 1,504 Try this
#include <iostream>
using namespace std;
void main()
{
int x, y;
int z=0;
do{
cout << "Please Enter a positive number\n"; |
Forum: C++ Dec 24th, 2007 |
| Replies: 12 Views: 1,422 You are not moving the cursor at right place before you do a "cout"
Ycan move cursor by including one more function in your point class
in point.h
add a member funtion in the point class
void... |
Forum: C Dec 21st, 2007 |
| Replies: 3 Views: 4,439 It clearly indicates you have done things right!! |
Forum: C++ Dec 21st, 2007 |
| Replies: 29 Views: 2,767 Did you tried the impliementation I suggested earlier ? What is the error code ? |
Forum: C++ Dec 21st, 2007 |
| Replies: 29 Views: 2,767 Well I could not understand the errors. I don't know how do you add lib refreence in dev++. however you can use
#pragma comment(lib, "myfile.lib") in your cpp. It will autometicallty link the lib.... |
Forum: C++ Dec 21st, 2007 |
| Replies: 29 Views: 2,767 .lib is always created once you create a dll. You can include that .lib in linker options of your project then you dont need to call LoadLibrary. it is static linking of dll.
However, your... |
Forum: C++ Dec 21st, 2007 |
| Replies: 29 Views: 2,767 There is should ne bo reason why MessageBox should fail provided you make that call and system is not running out of handles.
int __declspec (dllexport) function1() {
if(IDOK !=... |
Forum: C++ Dec 21st, 2007 |
| Replies: 29 Views: 2,767 What did not work ?
LoadLibrary
GetProcAddress
function1()
or
FreeLibrary ?
If LoadLibrary did not work, look in keep dll in the same folder of exe.
if GetProcAddress did not work |
Forum: C++ Dec 21st, 2007 |
| Replies: 7 Views: 1,570 I don’t know how PC Wizard 2008 calculates CPU usage. How does it matters to you that some programs are using high CPU? CPU cannot be idle (it runs idle thread when it is idle!!).
Open up the task... |
Forum: C++ Dec 19th, 2007 |
| Replies: 18 Views: 1,711 @rajatC
your question is not clear. Do you want to redirct standered output?
You can use CreateFile (http://msdn2.microsoft.com/en-us/library/aa363858.aspx)API to open the file. However, keep... |
Forum: C++ Dec 19th, 2007 |
| Replies: 7 Views: 1,524 Try this
int _tmain(int argc, _TCHAR* argv[])
{
HANDLE hfile;
HGLOBAL hmem;
DWORD dwRead = 0;
LPVOID lpBuffer;
DWORD lpFileSizeHigh; |
Forum: C++ Dec 19th, 2007 |
| Replies: 7 Views: 1,524 Hello toolmanx,
Two things
1) Never call GetLastError if the API is sucessful. Call it only when API fails and it is documented that GetLastError will give you right error value.
2) Give a... |
Forum: C++ Dec 18th, 2007 |
| Replies: 7 Views: 719 Two reasons::
1) Microsoft may change behaviour of these APIs without any notifications. Therefore your application may break.
2) Microsoft does not 'supports' usage of thses APIs. |
Forum: C Dec 18th, 2007 |
| Replies: 2 Views: 797 Did you typedef LPCTSTR to flStr and OptStr? If not your function should look like
void checkOptions(LPCTSTR flStr,LPCTSTR OptStr)
{
int iArg = 1, x = 0, i = 0;
TCHAR eMsg[0x200];
i... |
Forum: C++ Dec 17th, 2007 |
| Replies: 7 Views: 719 Narue has pointed to a great article. To udestand this article you may need Debugging tools for windows. http://www.microsoft.com/whdc/devtools/debugging/default.mspx
However, these are... |
Forum: C++ Nov 28th, 2007 |
| Replies: 3 Views: 1,921 https://msdn2.microsoft.com/en-us/library/ms971340.aspx
does it helps. |
Forum: C++ Dec 14th, 2006 |
| Replies: 7 Views: 3,022 i guess, when u are creating a brush u need to distroy it also using DeleteObject, currently it seems to be a leak.
else if(map.isSelect(x,y))
FillRect(hdc, &rect,... |
Forum: C++ May 3rd, 2006 |
| Replies: 14 Views: 8,437 u can think of writing a projectof file management
include these funtion
search files
relocate them
delete them
hope it will not be too difficult. |