Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get a handle for a Dialog Pin
Goto_Label_23-Oct-11 8:09
Goto_Label_23-Oct-11 8:09 
GeneralRe: How to get a handle for a Dialog Pin
Richard MacCutchan23-Oct-11 9:04
mveRichard MacCutchan23-Oct-11 9:04 
GeneralRe: How to get a handle for a Dialog Pin
appollosputnik24-Oct-11 7:00
appollosputnik24-Oct-11 7:00 
QuestionC Compiler needed (64 bit)! Pin
Veeshal Beotra21-Oct-11 17:34
Veeshal Beotra21-Oct-11 17:34 
AnswerRe: C Compiler needed (64 bit)! Pin
«_Superman_»21-Oct-11 18:55
professional«_Superman_»21-Oct-11 18:55 
AnswerRe: C Compiler needed (64 bit)! Pin
Richard MacCutchan22-Oct-11 1:03
mveRichard MacCutchan22-Oct-11 1:03 
QuestionSound Generation problem C Pin
Veeshal Beotra21-Oct-11 17:32
Veeshal Beotra21-Oct-11 17:32 
AnswerRe: Sound Generation problem C Pin
Software_Developer21-Oct-11 21:28
Software_Developer21-Oct-11 21:28 
playing mp3
(Copy & paste, Save the source file as .C, not.CPP, won't compile)

C#
#include <cstdlib>
#include <windows.h>
#pragma comment(lib, "Winmm")
#pragma comment(lib, "Vfw32")
#include <vfw.h>
#include <Mmsystem.h>



LPCWSTR lpFileName = L"c:\\file.mp3";

int wmain(int argc, char **argv)
{
    PlaySound(lpFileName, NULL, SND_FILENAME);
    return 0;
}


playing wav
(Copy & paste, Save the source file as .C, not.CPP won't compile)

C#
#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>

#pragma comment(lib,"Winmm.lib")

int main(void)
{
    PlaySound("c:\\file.wav",NULL,SND_FILENAME);

    return 0;
}

GeneralRe: Sound Generation problem C Pin
Richard MacCutchan22-Oct-11 2:25
mveRichard MacCutchan22-Oct-11 2:25 
AnswerRe: Sound Generation problem C Pin
Code-o-mat21-Oct-11 22:54
Code-o-mat21-Oct-11 22:54 
QuestionStatic Text Control with White Background Pin
Bram van Kampen21-Oct-11 15:14
Bram van Kampen21-Oct-11 15:14 
QuestionRe: Static Text Control with White Background Pin
David Crow21-Oct-11 15:43
David Crow21-Oct-11 15:43 
AnswerRe: Static Text Control with White Background Pin
«_Superman_»21-Oct-11 16:55
professional«_Superman_»21-Oct-11 16:55 
QuestionCMFCListCtrl and Sorting Pin
Richard Zey21-Oct-11 12:58
Richard Zey21-Oct-11 12:58 
QuestionRe: CMFCListCtrl and Sorting Pin
David Crow21-Oct-11 13:39
David Crow21-Oct-11 13:39 
AnswerRe: CMFCListCtrl and Sorting Pin
Richard Zey24-Oct-11 5:12
Richard Zey24-Oct-11 5:12 
GeneralRe: CMFCListCtrl and Sorting Pin
Richard Zey24-Oct-11 7:43
Richard Zey24-Oct-11 7:43 
Questioncopy bytes from receive buffer pointer Pin
jkirkerx21-Oct-11 12:35
professionaljkirkerx21-Oct-11 12:35 
AnswerRe: copy bytes from receive buffer pointer Pin
André Kraak21-Oct-11 12:51
André Kraak21-Oct-11 12:51 
GeneralRe: copy bytes from receive buffer pointer Pin
jkirkerx21-Oct-11 13:07
professionaljkirkerx21-Oct-11 13:07 
QuestionRe: copy bytes from receive buffer pointer Pin
André Kraak21-Oct-11 13:15
André Kraak21-Oct-11 13:15 
AnswerRe: copy bytes from receive buffer pointer Pin
jkirkerx21-Oct-11 13:18
professionaljkirkerx21-Oct-11 13:18 
AnswerRe: copy bytes from receive buffer pointer Pin
André Kraak21-Oct-11 13:31
André Kraak21-Oct-11 13:31 
QuestionRe: copy bytes from receive buffer pointer Pin
André Kraak21-Oct-11 13:32
André Kraak21-Oct-11 13:32 
AnswerRe: copy bytes from receive buffer pointer Pin
jkirkerx21-Oct-11 13:36
professionaljkirkerx21-Oct-11 13:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.