No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi all, I'd like to open a file dialog using win32 project ...I need a simple code example that uses FileOpen...I used <commdlg.h> ...::GetOpenFileName or ::GetSaveFileName but i can't get them to work :S ... Thanks in Advance, |
|
Hi, I'm trying to search in an audio file based on keyword spotting so i recorded the key words in different .wav files...and then compare the incoming .wav file with the key words... I applied feature extraction on the incoming .wav file as well as the keyword um using to … |
|
Hi, I tried the following snippet of code [code] BEGIN_MESSAGE_MAP(CSpeechDlg, CDialog) //{{AFX_MSG_MAP(CSpeechDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_BUTTON_VOICE_TRAINING, OnButtonVoiceTraining) ON_BN_CLICKED(IDC_BUTTON_MICRO_SETUP, OnButtonMicroSetup) ON_BN_CLICKED(IDC_BUTTON_SPEAK, OnButtonSpeak) ON_BN_CLICKED(IDC_BUTTON_ABOUT, OnButtonAbout) //}}AFX_MSG_MAP ON_MESSAGE(WM_RECOEVENT,OnRecoEvent) END_MESSAGE_MAP() [/code] but i got an error at this line: [code] ON_MESSAGE(WM_RECOEVENT,OnRecoEvent) [/code] the error is : [code] Error 1 error C2440: 'static_cast' : cannot … |
|
Hi, I'm trying to count files in a desired directory using MFC... I tried the following code: [code] int CountFiles(const std::string &refcstrRootDirectory, const std::string &refcstrExtension, bool bSubdirectories = true) { int iCount = 0; std::string strFilePath; // Filepath std::string strPattern; // Pattern //std::string strExtension; // Extension HANDLE hFile; // Handle … |
|
Hi, I'm writing MFC code and i got an error after writing this command line: [code] CFile f(_T("E:\\testHMM.txt", CFile::modeCreate|CFile::modeWrite)); [/code] the error is Debug Assertion Failed!!! Thanks, Mostafa Fouly |
|
Hi, I'm trying to pass parameters to an exe file using C++...i tried the following code: [code] system("FileName.exe"); [/code] but this command line just fire the .exe file without passing any arguments... Thanks, Mostafa Fouly |
|
Hi, I'm trying to send a bitmap using WCF and here's the steps i followed: 1-Convert it into byte array [code] private IDataObject tempObj; private System.Drawing.Image tempImg; tempObj = Clipboard.GetDataObject(); tempImg = (System.Drawing.Bitmap)tempObj.GetData(System.Windows.Forms.DataFormats.Bitmap); tempImg.Save("hello.bmp"); VideoData = System.IO.File.ReadAllBytes("hello.bmp"); [/code] 2-Receiving the byte array from the other client side and convert it … |
|
Re:
hi all, recently ran into a really hard problem for me: i have an sql command with something like this SELECT xxxxx FROM xxxxxx WHERE filter LIKE '[A]' what i would like to do is substitute [ with [[] on the condition that it is after a LIKE and is … |
|
Hi, I'm building my own simple Messenger via Intranet using WCF...but i've a little problem with sending an attachment. I attached the project to check it and here's the steps to follow in order to test the project: 1-Run the SimpleSvcHost( to run the service). 2-Run the SimpleClient. 3-choose one … |
|
Re:
hello friends.. [B] plz help me in making internet/intranet messenger like gtalk but dont know from where to start? [/B] |
|
Hi all, I'm a beginner at Open Watcom and i'm trying to R/W from and into a file...i used the library "fstream.h" but the scanner shows invalid token... [code] #include <stdio.h> #include <string.h> #include <iostream.h> #include <fstream.h> int main() { ifstream inFile; // object for reading from a file ofstream … |
|
Hi all, The following code is generated automatically in Microsoft c++: [code] // InventoryAssignment(BETA).cpp : main project file. #include "StdAfx.h" #include "Form1.h" using namespace InventoryAssignmentBETA; [STAThreadAttribute] int main(array<System::String ^> ^args) { // Enabling Windows XP visual effects before any controls are created Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); // Create the main window and … |
|
Hi all, I added a class named RandomVariableGenerator with the following functions in the .h file [code] static double GetRandomNumber(void); static double GetExponential(double beta); static double GetUnifrom(double a, double b); [/code] but after building them i got the following errors: Error 1 error LNK2020: unresolved token (06000002) RandomVariableGenerator::GetRandomNumber Error 3 … |
|
Hi all, I used a function called GetRandomVariable to return a double data type and here's its code: [code]double GetRandomNumber(void) { // Zi = (AZi-1 + C)(mod m) // Zi = (5Zi-1 + 3)(mod 16) RandomVariableGenerator::Znode = (double)((5.0*RandomVariableGenerator::Znode + 3) % 16); return RandomVariableGenerator::Znode/16; } static double Znode = 7.0; … |