|
It is an audio application. When user plugs in a jack, this application window is brought to foreground, and asks the user to choose the type of the device (PC speakers, headphone, or mic) which the user is plugging in.
Just like the way you plug in a USB disk, you see a popup dialog box for choosing something.
Of course user can decide not to choose any when it pops up the menu.
Maxwell Chen
modified on Thursday, February 4, 2010 2:47 AM
|
|
|
|
|
I would suggest using some mechanism other than a menu...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
I think the reason my colleague chose to use the owner draw menu was because it could be placed at the desired position. As the example in the sample screenshot[^], it indicates the choices are for the 3rd port (the donut icon), not for the 1st and the 2nd port.
Maxwell Chen
|
|
|
|
|
You can position any window the way you can a menu.
The main issue is the modal message loop the menu enters. That's what you need to workaround somehow.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
OK. Thanks for your suggestion.
Maxwell Chen
|
|
|
|
|
Hi All
i am stuck to establish connection with server machine with oracle.I am able t connect with oracle in local system(single pc) through this code.
_ConnectionPtr m_pConn;
CString Connectionp="Provider=OraOLEDB.Oracle;PLSQLRSet=1;Data Source=orcl";
HRESULT hr = S_OK;
hr=m_pConn.CreateInstance (__uuidof (Connection));
hr=pCommand.CreateInstance (__uuidof (Command));
m_pConn->Open (_bstr_t (Connectionp),bstr_t(system),bstr_t(password),adModeUnknown);
How can i connect to server machine?Please help me
|
|
|
|
|
The Data Source - orcl is probably configured for the local machine.
Change it to connect to the server.
|
|
|
|
|
Thanks for reply....
it means oracle must be install in local machine.
There is any more connection string to connect with server machine.
|
|
|
|
|
get your Oracle DBA to give you the correct tnsnames.ora settings for the server DB instance - say he gives it to you and its 'dbprod1' - paste the settings into your tnsnames.ora, then replace 'orc1' in Data Source=orcl with, for example, dbprod1, so you get Data Source=dbprod1 as the end part of ie
CString Connectionp="Provider=OraOLEDB.Oracle;PLSQLRSet=1;Data Source=dbprod1";
'g'
|
|
|
|
|
|
I am way new to cryptography. I have figured out how to decrypt an mpeg file. I now need to authenticate the images. I have a certificate embedded in the decrypted image file along with an "R" and "S". What are the steps to pull the "P" (prime) out of the embedded certificate and verify the signature? I'm on a windows xp sp3 platform using Visual Studio 2008 sp1.
Thanks.
|
|
|
|
|
|
Thanks for the reply. I was able to get as far as I can by using MSDN Cryptography pages. So far I havent been able to find specific instructions/examples for authenticating the images of a decrypted file.
|
|
|
|
|
Hi All
How can i get url monitor?If url open in Internet explorer or mozilla etc i want to make log file of open url.
|
|
|
|
|
Don't you like the browser's history feature?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
yes i think it's solve my problem.how can i get browser's history?
|
|
|
|
|
It is browser-dependent. A quick search gave me the follow pages for Firefox and Internet Explorer [^], [^]. There's also the CodeProject's article: "Access Internet Explorer's History in MFC".
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
How to get hard disk size, partition size and partition start position in
disk through windows API or using win ioctl code
I tried to use SetFilePointerEx on winxp but got compile error(unrecognized function)
|
|
|
|
|
|
As suggested above DeviceIOControl is needed.
In addition to that if you want to get the partition size and partition start position
you have to call IOCTL_DISK_GET_DRIVE_LAYOUT_EX([^]) as device control code then you will get the partition data.
It has structure DRIVE_LAYOUT_INFORMATION_EX([^]), which will give the required data.
Величие не Бога может быть недооценена.
modified on Thursday, February 4, 2010 1:33 AM
|
|
|
|
|
Thanks
IOCTL_DISK_GET_DRIVE_LAYOUT gives geometry of partition (size, starting offset in disk, type etc).
How to get disk(PHYSICALDRIVE0,1..) size.
|
|
|
|
|
MKC002 wrote: How to get disk(PHYSICALDRIVE0,1..) size.
Follow the link I provided and check out some of the other commands.
MVP 2010 - are they mad?
|
|
|
|
|
|
Thanks
GetDiskFreeSpace gives geometry of partition (total cluster,sector per cluster, sector size and free cluster).
How to get disk(PHYSICALDRIVE0,1..) size. I think GetDiskFreeSpace will not work for it
|
|
|
|
|
Writing Object Succeeds with the following code
#include <iostream>
#include <fstream>
using namespace std;
class Data
{
public:
string name;
int id;
public:
Data(){}
Data(string n,int id){name=n;this->id=id;}
};
int main() {
Data objdata("sujan dhakal",1);
fstream file("c:\\test.txt",ios::out | ios::binary);
if(file.is_open())
{
file.write((char*)&objdata,sizeof(Data));
cout<<"Success";
file.close();
}
else
{
cout<<"Error";
}
return 0;
}
but why reading not working
#include <iostream>
#include <fstream>
using namespace std;
class Data
{
public:
string name;
int id;
public:
Data(){}
Data(string n,int id){name=n;this->id=id;}
};
int main() {
Data objdata;
fstream file("c:\\test.txt",ios::in | ios::binary);
if(file.is_open())
{
file.read((char*)&objdata,sizeof(Data));
cout<<objdata.name<<objdata.id<<endl;
cout<<"Success";
file.close();
}
else
{
cout<<"Error";
}
return 0;
}
help me
|
|
|
|