- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
im a musician, a programmer. thats all
- Interests
- playing the guitar, fishing, playing pingpong, sleeping
- PC Specs
- dont have my own yet
greetings just started with C/C++. Im not quite comfortable porting from java to c/c++. Pointers are quite hard at start. So pls help me with this problem I want to copy the exact data of a certain pointer to an array of struct. Not just point a pointer from another. … | |
Re: just right click on the toolbar and try to find the box you are looking for. | |
can anyone explain about assertion failure. i cant seem ti fix my problem with this error. it comes out when i try to load a file. here part of the code [code=c++] BDLL fileHandle::load() { char fileN[MAX_PATH]=""; OPENFILENAME ofn; ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.lpstrFilter = "Bitmap Files (*.bmp)\0*.bmp"; ofn.lpstrFile … | |
Re: i found one program before that does that try googling around i kinda forgot the site. Im gonna try to make my own progam. Im bored here. | |
how do I get The value I have entered in a textfield after submitting it. i need to process it using java thanks | |
ive been searching google for any tutorial about loading bitmaps and paint it in a window. so far the tutorials ive read was loading it from your resources. I want to paint a bitmap from where you will choose a file from a file dialog and the you will draw … | |
greetings again. few more question.. [code] /*----------------------------------------- MENUDEMO.C -- Menu Demonstration (c) Charles Petzold, 1998 -----------------------------------------*/ #include <windows.h> #include "resource.h" #define ID_TIMER 1 LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ; TCHAR szAppName[] = TEXT ("MenuDemo") ; int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { HWND … | |
whats the reason behind using int main over void main? in most books ive read they often discourage the use of void main. but offer little info about it | |
Re: Im a smoker myself. wakeke In my point of view smokers have to consider the non-smokers. Indeed second hand smoke is harmful. I usually throw my newly lighted cigarretes when is see kids in the area. I hate second hand smoke as well its irritating my nose. | |
Re: windows versus linux? both have strenghts and weaknesses against each other. its just a matter of a persons preferences. choose what fits your need... ive been using windows for more than 9 years already. i would rate satisfactory on their os. what i hate most about windows is that your … | |
I want to make a program that monitors your cpu, virtual and physical memory. Can anyone give me a head start. Is there a standard function to know cpu usage, how much memory left, etc Whats the right term to search for monitoring computer resources in c? I tried some … | |
im making a timer program. that when a user dont input something in a specific time. the program will go to another menu so far in my research. threads would be the solution to this. but in my current status right now as a c++ programmer. i dont think im … | |
Re: [quote]I am a beginner that is learning C++. I would like to now how everyone else learnt C++.[/quote] ive learned it the hardway. from scratch i have to do intermediate programming modules in a day or two. (the basics are just inserted during research time) <- this is not a … | |
ive been trying to connect my c program and a postgre database using VC++. but i cant compile it because it cant find "postgres_fe.h". and also i cant find any tutorials about this one too. When i searched google, most are for linux. if anyone here knows some links to … | |
Re: [QUOTE=Jishnu;380483]Hi everybody, Do pointers or references exist in Java ? -Jishnu[/QUOTE] no | |
warning C4273: 'fileHandle::fileHandle' : inconsistent dll linkage. dllexport assumed. what does this warning mean? during debug i dont get this message but during release i have this one. can anyone explain the message to me and maybe give some remedy to it | |
Re: if you want to program in c++ you need a very good foundation. one design philisophy of c++(wikipedia.org) C++ is designed to give the programmer choice, even if this makes it possible for the programmer to choose incorrectly it could get nasty if you jump beginer level to advance if … | |
Re: Your ABsomething has no value. so when compared to your moduleCode it doesnt match your condition so it loops forever | |
[code=c++] void CMod7aView::OnPaint() { CClientDC dc(this); if(hBmp!=NULL) { CBitmap bmp; bmp.Attach(hBmp); CDC bmDC; bmDC.CreateCompatibleDC(&dc); CBitmap *pOldbmp = bmDC.SelectObject(&bmp); BITMAP bi; bmp.GetBitmap(&bi); dc.BitBlt(0,0,bi.bmWidth,bi.bmHeight,&bmDC,0,0,SRCCOPY); bmDC.SelectObject(pOldbmp); } [/code] how do you make your image persistant? everytime iload a bitmap after I move the main window the image disappears. pls help me. | |
[code=c++] // MainFrm.cpp : implementation of the CMainFrame class // #include "stdafx.h" #include "mod7a.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif char file[MAX_PATH]=""; ///////////////////////////////////////////////////////////////////////////// // CMainFrame IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd) BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) //{{AFX_MSG_MAP(CMainFrame) ON_WM_CREATE() ON_COMMAND(ID_FILE_OPEN, OnFileOpen) ON_WM_PAINT() //}}AFX_MSG_MAP END_MESSAGE_MAP() static UINT indicators[] = { … | |
[code] hBitmap = LoadBitmap(NULL, saFileName); [/code] ho come i cant load any bitmap using this function? hBItmap is always null | |
[code] a=(char*) malloc(sizeof(15)); b= bmfh.bfType; sprintf(a, "bfType: %d", b); TextOut (hdc, 0, 0,a , strlen(a)) ; delete[] a; a=(char*) malloc(sizeof(15)); b=bmih.biBitCount; sprintf(a, "bitCount: %d", b); TextOut (hdc, 0, 20,a , strlen(a)) ; [/code] is it necessary to leave the a undeleted when i gave it another value or i should … | |
what is the equivalent of javas repaint() method to win32s? i was now able to load a bitmap into a window but sadly you have to minimize or maximes the window before the bmp appears. any suggestions how to solve this one?? any help with be greatly appreciated.. thanks | |
First of all im a java programmer and im porting to c\c++. I have no knowledge of c\c++. Because my work requires me to learn c\c++. in just 1 week they want me to code intermediate stuff. I wasnt able to comply 100% to their requirments but at least i … | |
Any one here can tell me how to pop up an html file from your GUI... any classes to be used :cheesy: | |
i need to access a variable from a class to another class currently running at the same time. my plan is to: Save the values of the variable to a file and access it from the other class other options i have Use a database use RMI what other features … | |
--------------------Configuration: <Default>-------------------- C:\Documents and Settings\mykel\Desktop\auto.java:4: unexpected type found : char required: reference Set <char>setAlpha = new HashSet<char>(); ^ C:\Documents and Settings\mykel\Desktop\auto.java:4: unexpected type found : char required: reference Set <char>setAlpha = new HashSet<char>(); ^ 2 errors how come i cant cast a char on a set??? it works well with … | |
import java.util.*; public class al{ public static void main(String[] args){ List l = new ArrayList(); Object a = "hello"; l.add(a); l.add("asdasd"); l.add("hgdfsdfshjk"); System.out.println(l.isEmpty()+""); System.out.println(l.get(0)); for(int i=0;i<l.size();i++){ String b = (String)l.get(i); System.out.println(b); } } } i still havent figured out how to solve the warning it gives. can someone esplain to … | |
i have downloaded PCLinuxOs and ChubbyPuppy recently. i was wondering how you would burn the iso as bootable cd. do you need to extract the contents of the file and burn it or just burn the iso file as bootable cd |