Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
24% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
3
Downvotes Received
10
Posts with Downvotes
7
Downvoting Members
8
1 Commented Post
~22.2K People Reached
About Me

Electrical and electronics engineering student

PC Specs
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz, 2399 Mhz, 2 Core(s), 4 Logical Processor(s)
Favorite Tags

58 Posted Topics

Member Avatar for cppgangster

Hi I am developing using C/C++ window application using winapi. I will be using some standard STL containers and some win api functions provided by windows.h. I would like use the app on different windows versions such as windows 7 and 10. The apps will be builded for x86 architecture. …

Member Avatar for zigale
0
573
Member Avatar for cppgangster

Hi I am trying to get windows positioned in specific order as show below ![desired.PNG](/attachments/large/3/6447240b1491d04046fa904f31659f9b.PNG) but I am unable to get and get always this ![wrong.PNG](/attachments/large/3/71f4b92c4f40a6afeeab7e3c2f136526.PNG) the code below is shown HDWP cmdWnds; cmdWnds = BeginDeferWindowPos(col.size()); for (int i = 0; i < col.size(); i++) { if (i == 0) …

0
341
Member Avatar for cppgangster

Hi there, I hope I could find help about plotting graphs. My problem is I have a device which alows me collect some data and transfer it throught USB. Then I will interpret that data using c or c++. I would like to plot such data on a window on …

Member Avatar for cppgangster
0
181
Member Avatar for cppgangster

Hi there, Has anyone know to use voice commands on Android phones? I am developing a clock that is capable of displaying numbers and words. I would like to extend my project and to add GSM module so it is capable of receiving msg. I would like to use Android …

Member Avatar for JamesCherrill
0
200
Member Avatar for cppgangster

Hi there, I am having a problem of passing arrays to functions, here is my code: void zeroMatrix(float **arr); void main() { float e[2][2]; zeroMatrix(e); } void zeroMatrix(float** arr) { int i,j; for (i=0;i<2;i++) { for(j=0;j<2;j++) { *( *(arr +i)+j) =0; } } } The problem is I want to …

Member Avatar for David W
0
341
Member Avatar for cppgangster

Hi there, I have a problem in finding where is the mistake in my code.The problem is that I am not getting correct output of printf. As you can see I am derefferencing the pointers pd_f and pd_C in the brackets just before they are multiplied. The problem is removed …

Member Avatar for mike_2000_17
0
131
Member Avatar for cppgangster

Dear all, How to read a file with particural encoding like UTF -8 or UTF- 16. Do I need to use some special library?

Member Avatar for rubberman
0
127
Member Avatar for cent91

kavishan, if you want to learn MFC then grab two books: programming with windows 95 by Jeff Prosise (yes very old but this is the basics) and for full understanding get MFC internals by Shepherd Wingo

Member Avatar for thines01
0
631
Member Avatar for lewashby

substantially, you can use another command for performance improvement system("shutdown /r");

Member Avatar for Nick Evan
0
248
Member Avatar for annitaz

yes my friend you need to create a static variable inside the class, then increment the variable when constructor is called and decrement when destructor is called. And don't forget to initialize to 0 ;

Member Avatar for annitaz
0
234
Member Avatar for deppy
Member Avatar for deppy
0
211
Member Avatar for IMJS

Yes, use filesystem library from boost to get a list of file for a directory then search files with the required ending by using simple std:string.

Member Avatar for Ancient Dragon
0
181
Member Avatar for cppgangster

Dear all, I have been away from c++ for a while and I have just got back and started reading about "c++ concurrency in action". I found an example where the author gives function witch returns thread instance but I can not understand how you can declare a function in …

Member Avatar for deceptikon
0
179
Member Avatar for cppgangster

Hi all, I learning Java as a second language. And I found some syntax in my book of android development to be very hard to explain. Would you help me with this example : [CODE] Button btn(Button)findViewById(R.id.btn_dialog); [COLOR="Red"]btn.setOnClickListener(new View.OnClickListener(){[/COLOR] public void OnClick(View v) { showDialog(0); } }); [/CODE] Its quite …

Member Avatar for cppgangster
0
116
Member Avatar for vlaskiz

77 eiluteje !Word.find_first_of(Numbers,0)) ar neturetu buti != string::npos ? beje c++ standarte yra biblioteka vadinama cctype kurioje rasi funkcija std::isdigit

Member Avatar for vlaskiz
0
139
Member Avatar for pseudorandom21

I have a suggestion: don't reinvent the wheel. As for my opinion IRC is a past thing:)

Member Avatar for pseudorandom21
0
153
Member Avatar for cppgangster

I have strange problem and I dont know where it does come from. First I list here the struct I have problem : [CODE] struct _THREADPARMS{ //global definition in one of my header file HWND h_wnd; BOOL bContinueAccept; BOOL bConnected; CProgressCtrl* pProgress; CDialog* pDialog; }; [/CODE] then I declare global …

Member Avatar for cppgangster
0
714
Member Avatar for cppgangster

hi, I am trying to establish a connection between two laptops, as a beginner encountered a problems that are still to be learnt, but still I would like to know. I have two app, first is server on win wista: [CODE] #include "stdafx.h" #include "winsock2.h" #include <string> #include <iostream> //using …

0
135
Member Avatar for cppgangster

Hi I want to learn network programing, but I dont know where to start. I want to do windows networking. Help please

Member Avatar for cppgangster
0
84
Member Avatar for mrnutty

make a simple array container add 2 functios such as add() and operator[] witch knows the number ranges :)

Member Avatar for iamthwee
1
151
Member Avatar for Peter4n31
Member Avatar for L3gacy

I suggest you to read programming windows charles petzold 5 edition. Once you have finished with that book you will have a good knowledge of win api. From my experience, the first source for learning should be only books and than an internet, becouse an internet for ME is a …

Member Avatar for L3gacy
0
190
Member Avatar for radiata

find_char algorithm is wrong, bec becouuse when the first time you pass argument it will return 0. Did you think about sorting char as int number then removing duplicates, thant is very simplee..;)

Member Avatar for NathanOliver
0
852
Member Avatar for lochnessmonster
Member Avatar for cppgangster
0
2K
Member Avatar for cppgangster
Member Avatar for Thisisnotanid

I assume you should grab vc++ since you are learning on windows and neatbeans if you are on linux. There are many more to chooce from but these two give you most the features you want such as code autocomnpletion, syntax error hightlighting and both comes with strong compilers and …

Member Avatar for Moschops
0
237
Member Avatar for crapgarden

Buddy you need to : 1. get a pure c++ beginner book 2. read about basic types 3. then do it 2. more types until you get it what is char Becouse it is broad topic to discuss, and your questions are not clear and even you dont know what …

Member Avatar for crapgarden
0
188
Member Avatar for cppgangster
Member Avatar for cppgangster
0
121
Member Avatar for cppgangster

Hi I am getting an error saying that a class doesnt exist even I did foward declaration: [CODE]class CMyApp: public CWinApp { public: BOOL InitInstance(); }; class NumericOperation; //foward declaration class CMySkaiciuokle: public CDialog { public: CMySkaiciuokle(); virtual BOOL OnInitDialog(); protected: virtual void OnCancel(); virtual void PostNcDestroy(); afx_msg void OnPaint(); …

Member Avatar for cppgangster
0
114
Member Avatar for Osas106

for deployment reat it here [URL="http://msdn.microsoft.com/en-us/library/zebw5zk9%28VS.80%29.aspx"]http://msdn.microsoft.com/en-us/library/zebw5zk9%28VS.80%29.aspx[/URL]

Member Avatar for abelLazm
0
85
Member Avatar for cppgangster

Hi dudes, I currently learning mfc and I wrote a modeless dialog canculator app for my job. As soon as I tried to launch the app I get error msgbox saying "inoretly installed app.."(the exe file was copied to another conputer). My target OS is xp 32, while I am …

Member Avatar for cppgangster
0
163
Member Avatar for Ertzel

you can have pointer array of base type, then add member function to each base such as pictureBase::save(copy pictureBase&){//save procedure} then you can do like just like this: for(int i=0;i<coll.size();i++) coll[i].save(); or you can do this way: myArr: public vector<pictureBase&> { public: void saveAll(){ for(int i=0;i<coll.size();i++) coll[i].save(); } }

Member Avatar for Ertzel
0
1K
Member Avatar for eman 22

in c++ generic funtions catch automatically data type, but to get the right rezult you must comform to client contract, that means you have to provide correct input.

Member Avatar for cppgangster
0
324
Member Avatar for cppgangster

Hi dudes, does anyone know where is the problem this my code: [CODE]void CMyListBox::loadSources(CMyListBox::eInputMode eMode,const std::vector<wchar_t>& coll) { wchar_t *pBuffer=new wchar_t[coll.size()]; std::copy(coll.begin(),coll.end(),pBuffer); wchar_t zodis[20]; while (swscanf_s(pBuffer,L"%s",zodis,20)) MessageBox(zodis); }[/CODE] the imput(pBuffer) is this string "šešios žąsys su šešiais žąsiukais." swscanf_s only keeps reading the same word "šešios" ...

Member Avatar for Narue
0
153
Member Avatar for cppgangster

Hi, I am rapidly getting involved deeper programming and I want to know more about fundamental computer concepts. Could you drop some good tittles for me please? THANKS

Member Avatar for cppgangster
0
106
Member Avatar for cafegeo
Member Avatar for cafegeo
0
3K
Member Avatar for cppgangster

Hi started learning c from book "let us c". I noticed that I can't find string unformated functions such as putch,putche or stricmp? Are these funtcion are part of standart?

Member Avatar for abhimanipal
0
128
Member Avatar for cppgangster

Hi how to access standard input buffer to get 1 and second character from there? for c++ there is a function named peek() but in c libraries I can find one...

Member Avatar for Ancient Dragon
0
151
Member Avatar for cppgangster

hi, how to declare static data memeber of a class and how to define it? [CODE] class Hop { protected: static struct NStrct{ int nCount; } } [/CODE] how to implement it? for example if the static member is "static const count", you would declare the static member in implementation …

Member Avatar for cppgangster
0
174
Member Avatar for gavGaz
Member Avatar for cppgangster

Hi, is here any other issues then readability between two functions below? [CODE] void getNames(int) { .... } void getnames(int meaningfullName) { static_cast<void>(meaningfullName); ... } [/CODE]

Member Avatar for cppgangster
0
112
Member Avatar for cppgangster

Hi I am trying to put up simple app, and i get an error, could you tell me what I am doing wrong please. Here is my code: [CODE] #include <afxwin.h> class myapi: public CWinApp { public: virtual BOOL InitInstance(); }; class myframe: public CFrameWnd { public: myframe(); protected: afx_msg …

Member Avatar for cppgangster
0
554
Member Avatar for cppgangster

I have just started learning Gtkmm basics, and I the box widget is doing my headache, and here is the problem: [CODE] #ifndef NEWFILE_HPP #define NEWFILE_HPP #include "gtkmm/window.h" #include "gtkmm/scrollbar.h" #include "gtkmm/adjustment.h" #include "gtkmm/box.h" #include "gtkmm/label.h" #include "gtkmm/scale.h" #include "gtkmm/togglebutton.h" class window:public Gtk::Window{ public: window(); ~window(); private: Gtk::VScrollbar bar; Gtk::Adjustment …

Member Avatar for musiord
0
223
Member Avatar for cppgangster

Hi, I am trying to compile this program: [CODE] //hello.h #include <afxwin.h> class CMyApp: public CWinApp { public: virtual BOOL InitInstance(); }; class CMainWindow: public CFrameWnd { public: CMainWindow(); protected: afx_msg void OnPaint(); DECLARE_MESSAGE_MAP() }; //end of hello.h [/CODE] [CODE] //hello.cpp #include <afxwin.h> #include "hello.h" CMyApp myApp; BOOL CMyApp::InitInstance() { …

Member Avatar for cppgangster
0
121
Member Avatar for CronosAkroma

you can write function witch trims spaces from lines ends or you can use isspace() function to indetify spaces, you ll find it in cctype header file

Member Avatar for WaltP
0
111
Member Avatar for cppgangster

Hi, I want to learn mfc, but as I read in wiki mfc is not included in visual express editions, IS THE ONLY WAY TO LEARN MFC is buying visual studio software? are there any other solutions?

Member Avatar for Moschops
0
135
Member Avatar for format_c
Member Avatar for JordanHam

I assume use find algorithm then then distance algorithm and then do dinamic realocation and when start palying with pointer this appoatch will be goo for one time, if it takes more then one realocation should make a class for this or wrap this array, but then why to invent …

Member Avatar for Fbody
0
159
Member Avatar for Zvjezdan23

try to use this: [CODE] char ch=' '; int n=0; // for counting letters for (int i=0;i<string.size();i++) { if (char!=string[i]) n++; [/CODE]

Member Avatar for Nick Evan
0
351
Member Avatar for cppgangster

I am getting the same problem with the languege. How to craete graphical user interface on windows platform without Qt? MCF is not anymore included in Visual C++ isn't it?

Member Avatar for jonsca
0
113

The End.