|
I forgot to mention that actually i have 2 programes. The first is always hidden and the second suppose to be sometimes hidden and sometimes not. The first one register the hot keys and is the one which hidding the second one.
The first program has no maximize/minimize/system menu.
The second program has these buttons and they are enabled.
Does it make things different?
|
|
|
|
|
how can i hide the taskbar while my program is running and then unhide it when the program closes.
- Kyle
|
|
|
|
|
Why would you want to do this? You should *never* change a user's preferences just to suit your program.
|
|
|
|
|
i want to do this because the taskbar cuts off the bottom of the window.
is there a way to fit the window to the screen?
- Kyle
|
|
|
|
|
If you maximize the window, it will fill the screen, excluding the taskbar. Is that not what you want to do?
|
|
|
|
|
yes that is what i wanted to do thank you i will try it
- Kyle
|
|
|
|
|
Hi Kyle
I didn't try it but i think it will work:
1. get the taskbar window handler:
<br />
HWND wDesk=GetDesktopWindow();<br />
HWND wTray=FindWindowEx(wDesk,NULL,"Shell_TrayWnd", "");<br />
2. hide it:
<br />
ShowWindow(wTray,SW_HIDE);<br />
3. show it back again:
<br />
ShowWindow(wTray,SW_SHOW);<br />
Good luck
Mamtz
|
|
|
|
|
i made a program which searches other windowsfor other aps, and gets stuff like the content of text boxes , clicks buttons etc..
the program is a poker program, and when your two cards show up, the program gets two images from a dirctory representing the cards. Because i need to know the 2 cards which i have, i was wondering whether there was any chance of being able to tell which images are put into the gui.
i have had alook at some other child windows apart from the edit controls and combo boxes etc, and i have seen many ones which are called 'static', and others which are named 'afx...' (i think the latter are something to do with mfc?
are the static ones likely to be images? If so, is there any way i can tell what images they are?
if i cannot do it through looking at the gui, do you think there is a way to do this by listening to the folder that the images are in? or would this not work because they are all put into memory maybe when the app starts..
Thankyou.
|
|
|
|
|
I created a file DLL by VC++. After that to insert in VisualBasic I do following:
From Menu choose Project->Reference...-> Browse to file *.DLL (Adsoft.DLL)
Choose in ComboList (Prọect/Library)->Adsoft
But any class and function in there don't to appear.
If possible. Can you give me an example ?
I write this class following:
//VC++
// Adsoft.H
#ifdef ADSOFT_IMPL
#define CLASS_DECL_ADSOFT _declspec(dllexport)
#else
#define CLASS_DECL_ADSOFT _declspec(dllimport)
#endif
#undef AFX_DATA
#define AFX_DATA CLASS_DECL_ADSOFT
class AdsoftDLL : public CSocket
{
public:
BOOL CGetCheckErro(int nErroCode);
};
#undef AFX_DATA
#define AFX_DATA
// Adsoft.cpp
#include "afxdllx.h"
#include "Adsoft.h"
BOOL CGetCheckErro(int nErroCode)
{
if (nErroCode==0)
return FALSE;
return TRUE;
}
But to happen phenomenon don't to want
Thanks!
|
|
|
|
|
U will need to include/import that reference in your VB file. I believe for VB it will look something like this:
Imports Adsoft
TraileR ParK LifE 4Ever >:{
|
|
|
|
|
I am not sure what forum this question belongs to.
Could anyone make an educated guess about how bcwipe and other such companies swap file wiping works?
Is there any such open source utility that claims to do this?
I could not find such a thing.
I am guessing that they allocated huge amounts of memory that they hope the system will write to the page file (overwriting whatever was there before).
Any lead,code,educated guess will be very helpfull.
|
|
|
|
|
If I have an array of n records. Which of them will be fast according to operations for traversing all records. ? Will it be equal or array or is dependent on architecture ?
|
|
|
|
|
|
|
Anonymous wrote:
If I have an array of n records. Which of them will be fast according to operations for traversing all records.
I believe MAP are much Faster!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
It is interesting that he suggested 'traverse' without specifying a constraint.
Because if he merely requires ITERATION in inserted order, how can anything be faster than 'traversing' an array? No additional pointer access or lookup required, as long as records are all of same size. Just set a pointer to beginning of array and increement it by sizeof record to get next element. Not even a list is faster than that, right? Unless pointer assignment is faster than addition ...
You have
pCurrent = pCurrent + sizeof(record)
or else
pCurrent = pCurrent->Next
A map involves much more effort, but can give you potentaily sorted items, grouped items, or a lookup by keyed items.
|
|
|
|
|
Blake Miller wrote:
Because if he merely requires ITERATION in inserted order, how can anything be faster than 'traversing' an array?
My Wrong, I want to say searching is much faster in MAP if you have a Key!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I'm looking for ways to validate a file name - as independent as possible form the file system (i.e. find out if the path is well-formed).
Is this even possible independent of knowing the file system?
Pandoras Gift #44: Hope. The one that keeps you on suffering. aber.. "Wie gesagt, der Scheiss is' Therapie" boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
I may be wrong, but I recall that the Boost library had such a function, although it may be a lot more basic than you want.
|
|
|
|
|
I just want to see what can be done with simple measures.
what boost does looks good
Pandoras Gift #44: Hope. The one that keeps you on suffering. aber.. "Wie gesagt, der Scheiss is' Therapie" boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
I want to modify a text file programmatically. Suppose it is huge in size and my desired operation on it is to modify it by adding some text in middle of File. Is there any other except the traditional one, I always use i.e. to insert the string and shift all the rest that follow the string. Can some1 please tell me a fast method other than it.
|
|
|
|
|
It depends what you mean by 'modify'. If you are inserting new text then no, there is no other way than rewriting everything after the new string.
If you are just modifying existing text then you can overwrite the part of the file you are interested in.
|
|
|
|
|
u could always read the file, split it in half where u want to write
then rewrite that to the file in the order u want
i am also curious as to how to change where the file is being written/overwritten to
|
|
|
|
|
is it after i set the button in the dialog based application manually, i still have to do programming to locate the button in a certain location in the dialog apllication?
Thx a lot 4 help.
|
|
|
|
|
could i plot a real time signal n Spectrum in the dialog based application?
Could anyone give me fast fourier transform implementation coding?
i already have coding of how to detect the sound frm mic by using sound card in pc.by hw am i gng to transform the signal in analog into digital value(is it in ascii code) to do signal processing afterward?
thx a lot for your help.
|
|
|
|