|
Can someone help me?
i am making a app. and i want to heave my custom skin on it.
|
|
|
|
|
|
|
Hi friends, I have a query regarding display of image from remote machine.
In the current scenario we are displaying images from remote machine by copying the files from remote machine to local machine and displaying them using "MoveFile" method. But I can see in the preview b/w image to image there is a time delay of 10 sec
To be more specific:
I have 10 file paths of remote machine and I need to display preview of the images so we are copying files from remote machine to local machine using "MoveFile" after the preview of first image there is a time delay of 10sec to preview second image as it's being copied from remote machine. Is there any better method to reduce the time delay? or is it better to access the images directly from remote path and display instead of copying it to local machine?
Please do let me know your suggestions
|
|
|
|
|
Please do reply your suggestions
|
|
|
|
|
Super Hornet wrote: displaying them using "MoveFile" method
Huh? MoveFile displays images?
Super Hornet wrote: is it better to access the images directly from remote path and display instead of copying it to local machine?
Why don't you try it?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
I want to add String, long value pair in a map. I've done it as follows.
<br />
string user_key[5] = {"cocacola", "pepsi", "cocacola", "mango", "pepsi"};<br />
unsigned long comm_val[5] = {25, 45, 24, 67, 98};<br />
<br />
map<const string, unsigned long> comm_map;
map<const string, unsigned long>::const_iterator iter;<br />
<br />
for(int i = 0; i < 5; i++)<br />
{<br />
iter = comm_map.find(user_key[i]);<br />
<br />
if(iter == comm_map.end())<br />
{<br />
comm_map.insert(pair<const unsigned="" long="">(user_key[i], comm_val[i]));<br />
}<br />
else<br />
{<br />
comm_map[user_key[i]] = comm_val[i];<br />
} <br />
}<br />
</const>
Actually in my application, this map updated around every 30 milliseconds. I mean every 30 milliseconds data is send to the map. It's fine so far.
But what I need to do is, regularly I want to send map content to a XML file. My question is, at the XML write time I want to stop updating the map. Otherwise data can be loss or some other effect. How can I avoid this? Using a flag?
Any comments,
Thanks
I appreciate your help all the time...
CodingLover
|
|
|
|
|
|
Actually I want to avoid threads and achieve for a best.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Read this[^] regarding synchronization.
|
|
|
|
|
Hi everyone.
Please guide me how I can save following information in a bit Array.
I have different level context Menu. I want to store level information, Item ID, Position and Enable/Disable in one bit sequence.
For example:
241 ID_FILE_PRINT 3 1
2 is First Menu
4 is Sub Menu of First Menu
1 is Sub Menu of Sub Menu at 4
ID: ID of Item
3 is position at Sub Menu 1
1 is enable/disable bit
Please guide me how can i store all the information in an bit Array. How can i get specific value out from the built bit sequence.
Your help is highly appreciated.
Thank you.
|
|
|
|
|
The modern C++ way to do this with is with C++ Bit Fields.[^]
Here is an example:
typedef struct _BitArray
{
unsigned bit1:1;
unsigned bit2:2;
unsigned bit3:3;
unsigned bit4:4;
unsigned bit5:5;
unsigned bit6:6;
unsigned bit7:7;
unsigned bit8:8;
} BitArray, *LPBitArray;
TRACE1("Size of type = %d",sizeof(_BitArray));
BitArray b = {0};
b.bit1 =1;
Best Wishes,
-David Delaune
|
|
|
|
|
Thank You Dear.
destined to win
|
|
|
|
|
Good Morning !
I have four radio buttons in the main dialog box, each radio button refers to a sub application, once the user selects one radio button all the four buttons are disabled when the user completes the work in the sub application he comes back to the main dialog box which has four radio buttons all are in disabled form , now i enable them so that user can select a different sub application, but the previously selected radio button is still selected, so how to unselect the previously selected radio button ??
thanks !
|
|
|
|
|
The radio buttons should be arranged in a group so that if the selection changes for either of the radio button the other one automatically gets deselected
See here[^]
You don't need to do it explicitly
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks but couldn't get it!!
i just need to select and unselect programmatically, using the object of the radio button!!
|
|
|
|
|
kapardhi wrote: i just need to select and unselect programmatically, using the object of the radio button!!
If this is the way you want here is the API that you can use.
void CButton::SetCheck(int nCheck );
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
..................
How Can I get running processes of WinXp.
I need to do one function execution if the process is running,
..caan u plz tel me whats the WindowsAPI for this.
waiting for ur reply.
|
|
|
|
|
Member 3220373 wrote: How Can I get running processes of WinXp.
BOOL EnumProcesses(DWORD* lpidProcess,DWORD cb,DWORD* cbNeeded);
Eg from MSDN:
void PrintProcessNameAndID( DWORD processID )
{
char szProcessName[MAX_PATH] = "unknown";
HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION |
PROCESS_VM_READ,
FALSE, processID );
if (NULL != hProcess )
{
HMODULE hMod;
DWORD cbNeeded;
if ( EnumProcessModules( hProcess, &hMod, sizeof(hMod),
&cbNeeded) )
{
GetModuleBaseName( hProcess, hMod, szProcessName,
sizeof(szProcessName) );
}
else return;
}
else return;
printf( "%s (Process ID: %u)\n", szProcessName, processID );
CloseHandle( hProcess );
}
void main( )
{
DWORD aProcesses[1024], cbNeeded, cProcesses;
unsigned int i;
if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) )
return;
cProcesses = cbNeeded / sizeof(DWORD);
for ( i = 0; i < cProcesses; i++ )
PrintProcessNameAndID( aProcesses[i] );
}
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thankx...
But actually I need to check only one condition that..
one of my process( eg. wmplayer.exe) is running then
i have to execute my statemnt.
but this code is quite large for my need..
can u give any small code or API so that I can check its Proces Name/Caption that a normal user can know..
plzzzzzzzzzzzzzzzz I need ur Help...
Thanx once again..
I m waiting..
|
|
|
|
|
You can filter the code since now you have the API's you would need to achieve this.
Alternatively, you can try using BOOL IsProcessInJob(HANDLE ProcessHandle,HANDLE JobHandle,PBOOL Result);
Pass JobHandle as NULL and you can get if the process is running under any job.
Haven't tried this, but it should work and suffice your needs.
Let me know if it helped.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanxxxxxxxx...
Its working in Visual Studio 2005.
but how can i use it in visual studo 6.0.
It shows error for psAPI.h file is not found.
|
|
|
|
|
google for psapi.dll, the best place to put the file is in your system32 folder and then link to this library. hope this helps
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Member 3220373 wrote: one of my process( eg. wmplayer.exe) is running then
i have to execute my statemnt.
If you just want to check if the process is running
Does GetProcessID[^] help?
Regards,
Sandip.
|
|
|
|