- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 3
- Downvotes Received
- 10
- Posts with Downvotes
- 7
- Downvoting Members
- 8
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)
58 Posted Topics
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. … | |
Hi I am trying to get windows positioned in specific order as show below  but I am unable to get and get always this  the code below is shown HDWP cmdWnds; cmdWnds = BeginDeferWindowPos(col.size()); for (int i = 0; i < col.size(); i++) { if (i == 0) … | |
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 … | |
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 … | |
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 … | |
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 … | |
Dear all, How to read a file with particural encoding like UTF -8 or UTF- 16. Do I need to use some special library? | |
Re: 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 | |
Re: substantially, you can use another command for performance improvement system("shutdown /r"); | |
Re: 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 ; | |
Re: *How do you expect us to help you if you do not describe your problem with the program?* | |
Re: 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. | |
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 … | |
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 … | |
Re: 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 | |
Re: I have a suggestion: don't reinvent the wheel. As for my opinion IRC is a past thing:) | |
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 … | |
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 … | |
Hi I want to learn network programing, but I dont know where to start. I want to do windows networking. Help please | |
Re: make a simple array container add 2 functios such as add() and operator[] witch knows the number ranges :) ![]() | |
| |
Re: 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 … | |
Re: 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..;) | |
Re: what is most popular language to program on .net currently? | |
hi does any one know libraries for wireless programing? | |
Re: 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 … | |
Re: 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 … | |
| |
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(); … | |
Re: 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] | |
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 … | |
Re: 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(); } } | |
Re: 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. | |
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" ... | |
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 | |
Re: I would do binary output to file, then I would invent sorting function | |
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? | |
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... | |
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 … | |
Re: Could it be that functions alter vector add some elemts? | |
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] | |
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 … | |
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 … | |
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() { … | |
Re: 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 | |
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? | |
![]() | Re: you should use while(inventdata.good()){...} |
Re: 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 … | |
Re: 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] | |
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? |
The End.