Nick Evan commented: "Isn't Dev-C++ dead?" > Yup, it is. +22
Salem commented: Also nice +36
Thanks alot
Thanks alot, Let me correct error on what you have just said
Anyone with update on the two frameworks
Hello guys,
I have loaded akrip32.dll and can get handle within a function, but cannot get it when calling the function in main()
Please help me
app.cpp
#include <iostream>
//testing function below
//main application
int main()
{
CDRip instance;
DWORD ver = instance.GetVersion();
LPGETCDHAND cdhandle;
HCDROM handle ;
handle = instance.GetCDHandle(cdhandle);
std::cout<<"The Handle is: "<<handle<<std::endl;
//wait!
std::cin.get();
return 0;
}
main.cpp
#include <iostream>
#include "main.h"
//Get CD handle
HCDROM CDRip::GetCDHandle(LPGETCDHAND lpcd ){
//define a pointer to the function
typedef HCDROM (*ptrGetCDHandle)(LPGETCDHAND lpcd );
//Create a pointer function to access the DLL function
ptrGetCDHandle GCDHandle;
//Load the DLL
HINSTANCE hDLL = LoadLibrary("akrip32.dll");
//DLL loaded successful?
if (hDLL!=0){
std::cout<<"Loaded DLL"<<std::endl;
//Get Function address
GCDHandle = (ptrGetCDHandle)GetProcAddress(hDLL, "GetCDHandle");
// Function loaded Succesful?
if (GCDHandle !=0){
LPGETCDHAND ptrCDHandle;
HCDROM test_handle = GCDHandle(ptrCDHandle);
return test_handle;
FreeLibrary(hDLL);
}
// Function Loading failed
else{
std::cout<<"Error, can't load function GetVersion!"<<std::endl;
FreeLibrary(hDLL);
}
}
//DLL Loading failed
else std::cout<<"Error! Cannot Load Library"<<std::endl;
}
main.h
#include <windows.h>
//structs used in below functions
#define MAXIDLEN 64
#define MAXCDLIST 8
typedef struct
{
char vendor[9];
char prodId[17];
char rev[5];
char vendSpec[21];
} CDINFO, *PCDINFO, FAR *LPCDINFO;
typedef struct
{
BYTE ha;
BYTE tgt;
BYTE lun;
BYTE pad;
char id[MAXIDLEN + 1];
CDINFO info;
} CDREC, *PCDREC, FAR *LPCDREC;
typedef struct
{
BYTE max;
BYTE num;
CDREC cd[MAXCDLIST];
} CDLIST, *PCDLIST, FAR *LPCDLIST;
typedef struct _GETCDHAND
{
BYTE size;
BYTE ver;
BYTE ha;
BYTE tgt;
BYTE lun;
BYTE readType;
BOOL jitterCorr;
BYTE numJitter;
BYTE numOverlap; // was …
see same discussion on windows recorder here:
http://discussions.virtualdr.com/archive/index.php/t-185935.html
try this as they suggested:
http://www.fridgesoft.de/harddiskogg.php
I want to use folded panel in wxPython, like one In explorer in Windows XP. I have tried to check through API and Demo but I cannot Get Idea. The Demo example is complicated
Anyone to get me up and running. I'm still googling, but your help is highly appreciated ;)
Why wont you leave Idle alone? There are some good IDE down there:
1. I use Wingware's Personal, but before that I used 101 edition
IMHO, 101 is far best than IDLE and have good debugger
2. Netbeans Early Access - Python
3. DrPython
# include<iostream>
#include<string>
#include<windows.h>
#include<fstream>
using namespace std;
ofstream outf("ticket.txt");
int selct;
char ch;
class passenger{
public:
int age,idno,routeno;
double tic,tic3,tic5;
string to,name,sex;
public:
void ticketprice(){
cout<<" (1) WATCH PRICES "<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 14);
cout<<" Route - Economy class - Business class "<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 15);
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"- Colombo - - -"<<endl;
cout<<"- to - 070,000 - 086,100 -"<<endl;
cout<<"- Washington - - -"<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"- Colombo - - -"<<endl;
cout<<"- to - 080,000 - 098,400 -"<<endl;
cout<<"- Paris - - -"<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
cout<<"- Colombo - - -"<<endl;
cout<<"- to - 050,000 - 061,500 -"<<endl;
cout<<"- London - - -"<<endl;
cout<<"-----------------------------------------------------------------------------"<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 12);
cout<<""<<endl;
cout<<""<<endl;
cout<<" ============ "<<endl;
cout<<" = NOTICE = "<<endl;
cout<<" ============ "<<endl;
cout<<""<<endl;
cout<<""<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 15);
cout<<"*****************************************************************"<<endl;
cout<<"** **IF (AGE <4) 50% DISCOUNT ON THEIR TICKET **"<<endl;
cout<<" **"<<endl;
cout<<""<<endl;
cout<<"** **IF (4 <AGE<15) 25% DISCOUNT ON THEIR TICKET **"<<endl;
cout<<" **"<<endl;
cout<<" **"<<endl;
cout<<"** **IF (15 <AGE<18) 10% DISCOUNT ON THEIR TICKET **"<<endl;
cout<<"*****************************************************************"<<endl;
}
void getdata(){
cout<<" (2) RESERVE A TICKET "<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 12);
cout<<"******************************************************************************"<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 15);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 14);
cout<<"** PLEASE ENTER YOUR NAME HERE : ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 15);
cin>>name;
outf<<"PASSENGER'S NAME IS : "<<name<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 14);
cout<<"** PLEASE ENTER YOUR SEX HERE (male/female) : ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 15);
cin>>sex;
outf<<"SEX OF THE PASSENGER : "<<sex<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 14);
cout<<"** PLEASE ENTER YOUR AGE HERE : ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 15);
cin>>age;
outf<<"PASSENGER'S AGE IS : "<<age<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<""<<endl; …
I use wamp for PHP issues and would like to Add python support, specifically Django. How do I do that? :)
yep i had downloaded the wingware IDE and it wasnt a free software, apart from wing IDE , do u suggest ne thing else i guess netbeans should do good.
wing IDE 101 is free of charge. I guess you downloaded Personal or Pro edition
Yes, wxWidgets is easier.
+1 for Tux4life
Thanks alot :)
Here is a Jump start:
Download and install (Check the one bundled with Mingw)
www.codeblocks.org
Books:
Thinking in C++
http://www.google.co.tz/search?hl=sw&q=thinking+in+C%2B%2B+pdf&meta=&aq=f&oq=
tutorials:
www.cplusplus.com
www.cprogramming.com
Happy coding!
Wait to see your OS :D
def Gold_Keeper(x):
a = 200
if x <= a:
print a+x,
elif x >= a:
print a+x,
else:
pass
Ok Cool Links!
Another question I have is how to retrieve HIWORD and LOWORD if Im given a variable
Lets say I have
DWORD testVariable;
// How do I get HIWORD and LOWORD???
If we are talking about possible replacement IDE's then i would say Netbeans. I actually payed for the personal version of wing IDE but in the end i went back to using netbeans just because i like it so much better.
If you download netbeans, you can add a plugin for python. YOu can also use netbeans with any other language you are learning such as Java, C++, C, and more.
EDIT: HAhahaha! My 666th post, should you trust it? :P
I used to make followup long ago. NBPython team have really worked hard, but since when I get in Wing stuffs I forgot NB. It is really Big IDE for PHP and I guess Java. I will give it a Try again
Anyway, If we could measure your brain, we could be in position of trusting/Not trusting. Since I can't do that, I'll take it positively. 666 posts? Oh Man, very Big :)
I'm practing with Akrip32.dll for a time now and I can get the DLL version as DWORD. The Version is divided as HIWORD and LOWORD
Can anyone help me interpret these Buzzwords? I have no Idea of what they are
Thank you :)
Just choose int version. Why? Someone will explain. But according to Salem, void mainers are doomed :D
Basically its a fault with IDLE, i get this problem a lot, so what i do is i write my code in IDLE and then i run it through the command line. Because as much as you can try there isnt a way around this.
I searched for ages, on the newsgroups and such, people have had this problem a lot before but no-one is going out of there way to fix it as it isnt something that is killing the language, its just a small bug.
Go for Wing IDE 101
www.wingware.com
It is free stripped version of Wing Pro/Personal Ed
Longtime Pythoneer and now a Small C++er so the issue is, it is fit for me, right?? :D
What a good coincidence! :D
try wxWidgets. Takes time to learn but pays
www.wxwidgets.org
EDIT: Search somewhere in the forum I have posted the Link to their free Ebook.
As a beginner, you should find some online tutorials on how to write C++. You also need a compiler, preferably with an IDE. I recommend Dev-C++ bloodshed for beginers, but you should definitely upgrade once you know how. The subject is simply to vast to be answered in one post.
Try this one. Otherwise just google it. I'm sure you'll come up with something.
Isn't Dev-C++ dead? I suggest code::blocks
www.codeblocks.org
Also check:
http://www.cprogramming.com/
http://www.cpluplus.com/
Ok, two have commented that it is great. But is it fit for a newbie?
Ok, your code works, but I have not understood the changes you made. Can you explain a little bit of changes and what I was doing wrong. Also why Did you changed LPCDLIST lpcd; to GCDLists(&lp); ?? also what about std::cout << lp.cd[0].info.vendor; ??
Thanks
LPCDLIST is pointer to struct.
GetCDLists code :if (GCDLists !=0){ LPCDLIST lpcd; // Pointer to struct GCDLists(lpcd); // <-- no place for data .....
if (GCDLists !=0){ CDLIST lp; // struct variable GCDLists(&lp); // an address of struct std::cout << lp.cd[0].info.vendor; .....
That completely solved the Problem.
Thanks you two guys :) You have saved me alot of pains
Or code::blocks, which is itself built on top of WxWidgets, and has a GUI designer
http://www.codeblocks.org/downloads
http://www.codeblocks.org/cbplugins
http://wiki.codeblocks.org/index.php?title=WxSmith_plugin
and also allows to use wxformbuilder from www.wxformbuilder.org
Get free PDF version of the official book here:
http://www.phptr.com/content/images/0131473816/downloads/0131473816_book.pdf
if you can/will change your mind and think of wxWidgets found at www.wxwidgets.org then here is official book as downloadable PDF
http://www.phptr.com/content/images/0131473816/downloads/0131473816_book.pdf
Is it good Idea for Newbie in Java like me(Python guy) to begine with 3rd Edition of thinking in Java by Bruce Eckel?
The reason is, it is free downloadable. If no any suggestion?
What is that which was fixed?
Praise God, I have been of help!
Tried check disk?
Try something like this (Assuming F is your drive)
chkdsk F: /f
try and see
Thanks alot, I hope that will settle the matter.
If there is any trick then feel free to add it guys
it didnt!
I use GCC compiler that comes with Code::Blocks. may be I should change compiler to windows
Here is the updated code.
When I run the app, it just loads the DLL then crashes :(
I don't understand what I do wrong. BTW I'm just starting with Windows DLL and I want to implement simple ripping function of the Akrip32.dll
Thanks alot.
I'm working on your comments :)
I have two classes, one inheriting wx.Frame and othe is wx.Dialog. I use the dialog to collect some info and I call its object in the wx.Frame class. The problem is, the dialog should return the value of its TextCtrl values and I have no Idea how to do it :)
I can grab the values via GetValue and make a tuple to return, but then I have no Idea how I can return the values to wx.Frame before I destroy the dialog
cheers!
try to post to the wxpy for Mac Mailing list.
There you will receive help from the creator (Robin Dunn) of the wrapper and many wxpy community guys :)
http://groups.google.com/group/wxpython-mac
Errors I get are as below and I have attached the Source code and DLL (the DLL is LGPLed)
C:\Program Files\CodeBlocks\Projects\testingAkrip\main.cpp||In member function `DWORD CDRip::GetVersion()':|
C:\Program Files\CodeBlocks\Projects\testingAkrip\main.cpp|38|warning: control reaches end of non-void function|
C:\Program Files\CodeBlocks\Projects\testingAkrip\main.cpp||In function `int GetCDLists()':|
C:\Program Files\CodeBlocks\Projects\testingAkrip\main.cpp|70|warning: control reaches end of non-void function|
C:\Program Files\CodeBlocks\Projects\testingAkrip\main.cpp|57|warning: 'lpcd' might be used uninitialized in this function|
obj\Release\app.o:app.cpp:(.text+0x2c)||undefined reference to `CDRip::GetCDLists(CDLIST*)'|
||=== Build finished: 1 errors, 3 warnings ===|
Thanks sir, Here are the files for the project plus the akrip which is found on http://akrip.sourceforge.net/download.html
While trying to fix it, try pidgin
Just google it. It handles almost all protocols (Including MSN and Yahoo)
I can't get the menu or status bar to show up when executing the following program:
import wx ID_ABOUT=101 ID_EXIT=110 class MainWindow(wx.Frame): def __init__(self, parent,id,title): wx.Frame.__init__(self,parent,wx.ID_ANY,title,size=(200,100)) self.control = wx.TextCtrl(self, 1, style=wx.TE_MULTILINE) self.CreateStatusBar() #A Statusbar in the bottom of the window #Setting up the menu. filemenu = wx.Menu() filemenu.Append(ID_ABOUT,"&About"," Information about this program") filemenu.AppendSeparator() filemenu.Append(ID_EXIT,"E&xit"," Terminate the program") #Creating the menubar menuBar = wx.MenuBar() menuBar.Append(filemenu,"&File") #Adding the "filemenu" to the MenuBar self.SetMenuBar(menuBar) #Adding the menubar to the Frame content. self.Show(True) app = wx.PySimpleApp() frame = MainWindow(None, -1, "Sample Editor") app.MainLoop()
The text editor part is the only part that appears. Anybody know what the problem is? Using python 2.6.2, wxPython 2.8
Works fine for me
Python 2.5.4, wxPython 2.8
Hi All,
I'm having trouble with my code.
When I compile I get Undefined reference to class::method where by class and method are my class and method. I get my methods from akrip32.dll
I,m at work so I have no source files, but I will attach them later when I lay hold on them.
Thanks all :)
EDIT: I use MINGW that comes with Codeblocks 8.02
Another Advice, you can use system cleaners like ccleaner. It wipes out garbages in your disk. Check out here at www.ccleaner.com
Bonus point is, it is freeware :)
OS Vista Home Premium
Does it need me to install/ have another Team viewer software installed on other machine. I need the software to only be installed on my machine and use remote desktop (That Comes with windows) on the other machine