Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~15.7K People Reached
Favorite Tags
c++ x 19
Member Avatar for Fouly

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,

Member Avatar for Quatrus
0
13K
Member Avatar for Fouly

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 …

Member Avatar for Fouly
0
134
Member Avatar for Fouly

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 …

Member Avatar for Fouly
0
350
Member Avatar for Fouly

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 …

Member Avatar for Fouly
0
254
Member Avatar for Fouly

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

Member Avatar for Fouly
0
158
Member Avatar for 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

Member Avatar for siddhant3s
0
505
Member Avatar for 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 …

Member Avatar for Fouly
0
743
Member Avatar for gp04lch

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 …

Member Avatar for LizR
0
70
Member Avatar for Fouly

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 …

Member Avatar for Fouly
0
102
Member Avatar for shobhitsingh03

hello friends.. [B] plz help me in making internet/intranet messenger like gtalk but dont know from where to start? [/B]

Member Avatar for Fouly
0
58
Member Avatar for Fouly

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 …

Member Avatar for cikara21
0
180
Member Avatar for Fouly

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 …

Member Avatar for Fouly
0
109
Member Avatar for Fouly

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 …

Member Avatar for Fouly
0
159
Member Avatar for Fouly

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; …

Member Avatar for Fouly
0
153