|
I found this: see this[^]
I bet you have to deal with UAC to find out what you want on Vista.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
, But is it possible using VC 6.0 to find out if Vista is installed (ie the OS Type ) ???
|
|
|
|
|
Yes it is!
OSVERSIONINFO osVersion;
memset( &osVersion, 0, sizeof(osVersion) );
osVersion.dwOSVersionInfoSize = sizeof(osVersion);
GetVersionEx( &osVersion );
bool isVista = (osVersion.dwMajorVersion==6) && (osVersion.dwMinorVersion==0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
Thank You so much ,
i was really stuck on this part , trying to browse thru MSDN ..
So now i can try to use the Vista UAC ..
Thanx
Vijayeta
|
|
|
|
|
Hi all,
I got a small trouble, If some one know how to do please tell me, many thanks.
I want to assign szData value into textBox->Text, but two kind of variable different type.
I used Visual Studio 2005, and deverloped VC++ language.
<br />
private: System::Windows::Forms::TextBox^ textBox;<br />
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { char* szData = "abcabcabcabc";<br />
textBox->Text =
}<br />
|
|
|
|
|
Seems you are in wrong forum...
- NS -
|
|
|
|
|
NS17 wrote: Seems you are in wrong forum...
he he he!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
|
|
Hi frenz
I have a ComboBox and ListControl in my dialog box.Based on the combobox selection i need to update the ListControl . How do i Do that??
Thanks in advance
With Reagards
Vikas
|
|
|
|
|
Do you want to change datas on the listctrl when you select an item of Combobox?
|
|
|
|
|
yes! I need to update the Listcontrol with new data corrsponding to the combo box selection.
With Reagards
Vikas
|
|
|
|
|
Do you want to set selection to that item on the listctrl?
|
|
|
|
|
Map the CBN_SELCHANGE of the combobox and do the updations of the list control in the mapped function.
- NS -
|
|
|
|
|
Thanku all! I am done!
With Reagards
Vikas
|
|
|
|
|
hi...
how to get all system directories , folders and files in a combo box?
paulraj
|
|
|
|
|
If you want to get with a statement see DlgDirList but I suggest use of FindFirstFile/FindNextFile/code>.
|
|
|
|
|
hi...
I tried...
you understand my question....
If i clicked combobox, directories folders and files should be come.
paulraj
|
|
|
|
|
You want to have folders and files on your combobox,right now why my answer was wrong?
|
|
|
|
|
Maybe because you didn't give him the full answer or the done job :P
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
I like he answers to me because I like to know my answer was correct or wrong?
|
|
|
|
|
And it is perfectly logical. But there are users that doesn't understand that our reward is a simple thank you when we helped, and I know that I am not as good as many other users, but I do my aportation as well when I can :P
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Of course its DlgDirListComboBox for combobox.;)
|
|
|
|
|
I am developing a web application in that I need to record audio, for that I am importing "winmm.dll" and using mciExecute function.(the following code is vb.net). If I have posted in irrelavent forum please let me know where should I post questions related to audio and video (for web development).
<code>
Imports System.Runtime.InteropServices
Imports Microsoft.VisualBasic
Imports Microsoft.VisualBasic.Devices
Partial Class audioRec
Inherits System.Web.UI.Page
<DllImport("winmm.dll", EntryPoint:="mciExecute", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> Private Shared Function mciExecute(ByVal lpstrCommand As String) As Boolean
End Function
Protected Sub BtnStart_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnStart.Click
mciExecute("open new Type waveaudio Alias recsound1")
mciExecute("set recsound1 time format ms bitspersample 16 channels 1 samplespersec 11025")
mciExecute("record recsound1")
End Sub
Protected Sub BtnStop_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnStop.Click
mciExecute("save recsound1 c:\\record.wav")
mciExecute("close recsound1 ")
Dim c As New Computer
c.Audio.Stop()
End Sub
Protected Sub BTNplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BTNplay.Click
Dim computer As New Computer
computer.Audio.Play("c:\\record.wav", AudioPlayMode.Background)
End Sub
End Class
</code>
but when I am clicking the start button "the order in which you are passing parameters is invalid please correct the order" msg is getting displayed. I need to to record an audio file in "8khz, 16 bit, mono" format. How can I meet this requirement.
i will be thankful for ur suggestions..
with regards,
kiran
|
|
|
|
|