- 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:
I accidentally closed my Toolbox in VC++ IDE.. now I donno how to bring it back. Please help... |
|
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:
hi i m doing thesis work and the title is to make a simulator for process schduling in any language. if anybody knows anything about it then plz help me. |
|
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:
My wireless connection crapped out as I was reading the backlog while I was out. If anyone familiar has I log, I'd appreciate seeing it. Regardless. Let's talk about smokers and smoking. :| |
|
Re:
Honestly I don't have much experience with Linux, but for the past three days all I have been trying to do is get Ubuntu and Kubuntu to at least LOOK decent. I've tested Sabayan and OpenSuse. I mean, I haven't relly gona as far as testing the operating system's functionality … |
|
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:
I am a beginner that is learning C++. I would like to now how everyone else learnt C++. |
|
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:
Hi everybody, I'm new to Java language & was previously working with C++. I'm totally confused as to what is the mechanism of passing variables having 1) built-in datatypes 2) array datatypes 3) user-defined objects as datatypes to any function. Is it pass by value or reference ? If arguments … |
|
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:
Making a "hello" world program in VC++ 6.0 is cool, as I got a very happy feeling when i completed it... but reading alot of books to learn "a round about" way in something isn't me. I'm objective oriented. What materials should I, could I, get my hands onto learn … |
|
Re:
does gcc compiler support graphics file ?how to write graphics program in gcc?pls guide me. in india how to get gcc compiler cd? send me some address. hurry up thanks & regards all members and guest |
|
Re:
I need to validate the moduleCode by a do...while loop. But my code does'nt exit the loop - Not sure if I did right thing by declaring the string ABC111 before the loop - please help urgently using namespace std; // function inputAndValidate should be inserted here void inputAndValidate(string &moduleCode,int … |
|
[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 |