Search Results

Showing results 1 to 30 of 30
Search took 0.01 seconds.
Search: Posts Made By: Fouly
Forum: Computer Science Apr 27th, 2009
Replies: 1
Views: 493
Posted By Fouly
hey,
I compared to files using the following code:

int SpeechIndex = 0;
int Compare(istream &in1, istream &in2,ostream &out)
{
char ch1, ch2;

int KeyWord_Length = 0;
int...
Forum: C++ Apr 20th, 2009
Replies: 4
Views: 913
Posted By Fouly
I set the generation of the mainfest file property to yes but i got the same error!!!
check this (http://msdn.microsoft.com/en-us/library/ms235229(VS.80).aspx)
Forum: C++ Apr 20th, 2009
Replies: 4
Views: 913
Posted By Fouly
well the building error is solved but i got a run time error!!!

here's the error:

Runtime Error!

R6034
An application has made an attempt to load C runtime library incorrectly.
Forum: Computer Science Apr 19th, 2009
Replies: 1
Views: 493
Posted By 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...
Forum: C++ Apr 17th, 2009
Replies: 4
Views: 913
Posted By Fouly
Hi,

I tried the following snippet of code


BEGIN_MESSAGE_MAP(CSpeechDlg, CDialog)
//{{AFX_MSG_MAP(CSpeechDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
Forum: C++ Mar 9th, 2009
Replies: 5
Views: 836
Posted By Fouly
I solved it using std::wstring instead of std::string.
In all places where i used string constants i used L"str" instead of "str".
http://www.codeguru.com/forum/showthread.php?p=1819481#post1819481
Forum: C++ Mar 5th, 2009
Replies: 5
Views: 836
Posted By Fouly
well i tried to google but i didn't find any thing useful concerning converting ASCII to Unicode and vice versa using MFC...
Forum: C++ Mar 3rd, 2009
Replies: 5
Views: 836
Posted By Fouly
Hi,
I'm trying to count files in a desired directory using MFC...

I tried the following code:


int CountFiles(const std::string &refcstrRootDirectory,
const std::string...
Forum: C++ Mar 2nd, 2009
Replies: 2
Views: 518
Posted By Fouly
i got a warning after building it not an error...and after closing the macro before the comma the file is created...
Thanks a lot:)
Forum: C++ Mar 1st, 2009
Replies: 2
Views: 518
Posted By Fouly
Hi,

I'm writing MFC code and i got an error after writing this command line:

CFile f(_T("E:\\testHMM.txt", CFile::modeCreate|CFile::modeWrite));


the error is Debug Assertion Failed!!!
...
Forum: C++ Feb 25th, 2009
Replies: 4
Views: 1,212
Posted By Fouly
yes i know that in this example i just passed fired the .exe file and that's am asking about how to pass arguments to an exe file???
Forum: C++ Feb 24th, 2009
Replies: 4
Views: 1,212
Posted By Fouly
Hi,

I'm trying to pass parameters to an exe file using C++...i tried the following code:

system("FileName.exe");

but this command line just fire the .exe file without passing any...
Forum: C# Dec 28th, 2008
Replies: 4
Views: 1,663
Posted By Fouly
Yes it comes in order and everything is okay...it was a matter of format.


private void WebCamCapture_ImageCaptured(object source, WebcamEventArgs e)
{
// set the picturebox...
Forum: C# Dec 27th, 2008
Replies: 4
Views: 1,663
Posted By Fouly
yes it's black...
Forum: C# Dec 27th, 2008
Replies: 4
Views: 1,663
Posted By Fouly
Hi,
I'm trying to send a bitmap using WCF and here's the steps i followed:
1-Convert it into byte array

private IDataObject tempObj;
private System.Drawing.Image tempImg;
tempObj =...
Forum: C# Dec 23rd, 2008
Replies: 4
Views: 1,135
Posted By Fouly
well i think all you want is a replace command and you don't have to use regex...well here's a SQL replace query to substitute part of field data:
update emp set department='Marketing' where...
Forum: C# Dec 15th, 2008
Replies: 3
Views: 792
Posted By Fouly
well i solved sending the attachment problem by reading the data a byte array at the client side then passing it to proxy.Upload as show below:

System.Text.Encoding enc =...
Forum: C# Dec 15th, 2008
Replies: 3
Views: 792
Posted By Fouly
I think this part of code will cause a runtime error

if (openFileDialog.ShowDialog() == DialogResult.OK)
{
FileStream fs = new FileStream(openFileDialog.FileName,...
Forum: C# Dec 14th, 2008
Replies: 3
Views: 792
Posted By Fouly
I modified the code to receive the attachment but i got the following error while debugging the SimpleSvcHost class...
The operation Upload either has a parameter or a return type that is attributed...
Forum: C# Dec 14th, 2008
Replies: 3
Views: 792
Posted By 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...
Forum: Domains and DNS Dec 14th, 2008
Replies: 1
Views: 2,088
Posted By Fouly
check these links...they will help you a lot
http://blogs.conchango.com/johnrayner/archive/2006/11/07/Using-WCF-in-the-MessengerService.aspx...
Forum: C++ Nov 27th, 2008
Replies: 1
Views: 1,530
Posted By 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...
Forum: C++ Nov 24th, 2008
Replies: 4
Views: 544
Posted By Fouly
a path to file
ex:c://windows.......
Forum: C++ Nov 24th, 2008
Replies: 4
Views: 544
Posted By 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...


#include <stdio.h>
#include...
Forum: C++ Nov 22nd, 2008
Replies: 2
Views: 316
Posted By Fouly
I'm astonished like you...i'll send you the code to check it
Forum: C++ Nov 22nd, 2008
Replies: 2
Views: 316
Posted By Fouly
Hi all,

The following code is generated automatically in Microsoft c++:


// InventoryAssignment(BETA).cpp : main project file.
#include "StdAfx.h"
#include "Form1.h"
Forum: C++ Nov 22nd, 2008
Replies: 2
Views: 557
Posted By Fouly
it works greatly...thanks a lot Arkm.
Forum: C++ Nov 22nd, 2008
Replies: 2
Views: 557
Posted By Fouly
Hi all,

I added a class named RandomVariableGenerator with the following functions in the .h file

static double GetRandomNumber(void);
static double GetExponential(double beta);
static double...
Forum: C++ Nov 22nd, 2008
Replies: 3
Solved: Parsing error
Views: 448
Posted By Fouly
Yes it works...i used the fmod function instead of implementing it by my self. thanks a lot Alex & William
Forum: C++ Nov 22nd, 2008
Replies: 3
Solved: Parsing error
Views: 448
Posted By Fouly
Hi all,
I used a function called GetRandomVariable to return a double data type and here's its code:

double GetRandomNumber(void)
{
// Zi = (AZi-1 + C)(mod m)
// Zi = (5Zi-1 + 3)(mod...
Showing results 1 to 30 of 30

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC