Okay, I am trying to learn Windows programming and there are all sorts of new data types that I am running into and need to learn. I'm trying to understand the point of it all and failing. If there is no point and it's just Microsoft making things difficult for no reason, well I guess that's life and I'll just deal with it. But if there IS a point to these types, I'd like to understand. For example, pretty much anything starting with a P is a pointer to something, so `PINT8` is the same as `INT8*`, `PINT16` is the …

Member Avatar
Member Avatar
+0 forum 5

Hello, Im messing with processes for a project that Im doing, so if I detect that the specific process Im checking changes the title containing a specific word like "Hello" I will kill the process and start it again. Im doing this with a timer so every X secs/minutes it checks for the title: Process[] processPads = Process.GetProcessesByName("notepad"); foreach (Process processes in processPads) { if (!processes.MainWindowTitle.Contains("Untitled")) { processes.Kill(); Process.Start("notepad"); } } That's what I have and works and everything but when I click anything on the menu like "File/Edit/Format/View/Help/etc" If I click any of those notepad gets killed and it …

Member Avatar
Member Avatar
+1 forum 5

In fedora machine, I am handling segv signal, doing some cleanup and then generating core file using SignalHandler(){ // Do Cleanup // For generation of core file signal(a, SIG_DFL); kill(getpid(), a); } But When I run a multi threaded program, the core file seems to point to a place completely unrelated to where the seg fault has occurred. Is there any work around for this?? Say there are 3 thread m (main), t1, t2 if segv happened in t2, I am seeing the core file to point to some unrelated code in m. I think by the time I catch …

Member Avatar
Member Avatar
+0 forum 3

Help me! I have a domain, I would like to handle subdumain with .htaccess file. for example: http://usa.hotbizzle.com or http://india.hotbizzle.com should not redirect to sub folder. URL should not change in the browser but it has to call a file php file and give result. Is there any possibilities in .htaccess or php.ini file?

Member Avatar
Member Avatar
+0 forum 2

Firstly Thanks in Advance.. I am trying to store an image in BLOB form into database and want to show that image on browser on retriving it from database.. Code used to convert image to blob is given below.. `ini_set('display_errors', 'On'); error_reporting(E_ALL); $img=file_get_contents("$_file[tmpname]");` but i am not able to display this image on retriveing record from database ... Please suggest me with code for 1. image to BLOB converstion 2. BLOB to image ( on browser )

Member Avatar
Member Avatar
+1 forum 5

Been at this for hours and cannot figure out how to get this the way I want. I need it to center the text in the console output like this... ******************************************* ABC Industries Report ******************************************* instead its coming out like this.. ********************************** ABC Industries Report ********************************** Here is what I got so far, any help will be gladly appreciated. #include <string> #include <iomanip> #include <iostream> #include <windows.h> #include <cctype> using namespace std; class Heading { private: string companyName; string reportName; public: Heading(); void placeCursor(HANDLE, int, int); void printStars(int); void getData(HANDLE, Heading&); void displayReport(HANDLE, Heading); }; int main() { Heading display; …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to load a PNG file into a BufferedImage like so: BufferedImage image = ImageIO.read(new File("smile.png")); When I use this line of code alone, it produes the error: Unhandled Exception Type IOException... I can fix this by surrounding the statement with try/catch like so: BufferedImage image = null; try { image = ImageIO.read(new File("smile.png")); } catch (IOException e) { System.out.println(e); } My question is, do you always have to handle IOExceptions when using ImageIO.read()? if so, then why and are there any other classes that do this? I've done a lot of research on the internet and couldn't find …

Member Avatar
Member Avatar
+0 forum 4

I'm trying to install the DriverUpdate program on my Windows 7 laptop, and it stops the installation right away, giving me an error message that says "An invalid file handle was associated with C:\Users\FUNKMA~1\AppData\Local\Terr" It then ends the attempted installation. My computer is named Funkmaster (that's why there's the \FUNKMA~1 part), and I think the Terr- part is cut off. How can I fix things so that I can install this program?

Member Avatar
Member Avatar
+0 forum 2

void doc::add_title() { doc d; fstream f; int med_lic,flag=0; char new_title[20]; cout<<"\n\t\t\tADD NEW DOCTOR TITLE\n"; cout<<"\nEnter the Doctor's medical license number :\t"; cin>>med_lic; f.open("doctors.da t", ios::binary|ios::in|ios::out); while(f.read((char*)&d,sizeof(doc))&&flag==0) { if(d.ret_med_no()==med_lic) //d is an object of class doc { cout<<"\nEnter the new title:\t";//ret_med_no() is an accessor function used to return a value used to find a record. gets(new_title); strcat(title,new_title);//title is a private member of class doc.new title is to be added next to this one. int pos=(-1)*sizeof(doc); f.seekp(pos,ios::cur); f.write((char*)&d,sizeof(doc)); flag=1; } else f.write((char*)&d,sizeof(doc)); f.close(); if(flag==0) cout<<"\nRecord not found.\n"; } } # The concept # This function is a part of the program …

Member Avatar
Member Avatar
+0 forum 1

hello friends, how can i design a region in vb.net form(windows application), such that when i click any point inside a region a new page opens. my problem is that the region which i want to define through it is very complex..its a combination of a rectangle and another shape. thanks for your help:)

Member Avatar
Member Avatar
+0 forum 6

I'm attempting to create a program where the login and password will be verified on an SQL database of user information. I keep getting the error "SQL Execution was unhandled" I marked the code that was causing the error in red. I'm using Visual Studio 8. Keep in mind I am pretty unsure of what I'm doing, and I am probably no where to even close to the right track. [CODE] Public Class Form1 Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click pnlLogin.Visible = False GroupBox1.Visible = True PanelSales.Visible = True End Sub Private Sub btnInventory_Click(ByVal …

Member Avatar
Member Avatar
+0 forum 1

I'm creating a hotkey application and this application does work when focused and also if not focused, so my problem is I cannot disable keyboard keys like ctr+alt+Del or alt+f4 while not focused. I want to disable those keys while the program is running and while unfocused. :D thnx for the answers.

Member Avatar
Member Avatar
+0 forum 3

Hi. I am having a problem in creating of one simple program in Python. Here is code. [CODE]import wx class bucky(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "Testing erea", size=(280,400)) panel = wx.Panel(self) food = wx.Button(panel,label='Food',pos=(10,10),size=(80,40)) pets = wx.Button(panel, label='Pets', pos=(100,10), size=(80,40)) self.Bind(wx.EVT_BUTTON, self.food, food ) def food(self, event): wx.StaticText(parent, -1, 'Bacon, apples, tuna', (10,30)) self.Bind(wx.EVT_CLOSE,self.closewindow) def closewindow(self,event): self.Destroy() if __name__=='__main__': app=wx.PySimpleApp() frame=bucky(parent=None,id=-1) frame.Show() app.MainLoop() [/CODE] 1.What my program does is it has two buttons: "Food" and "Pets". When I click "Food" button I want line of a text on a screen to appear. ("Pets" button does not do …

Member Avatar
Member Avatar
+0 forum 2

Hi Guys, Not sure if this is a php or sql problem but i keep getting the following error when trying to update a row using php and 'UPDATE': ERROR:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near... I've done a bit of testing on it and when i remove 'description' from the update it works fine. My 'description' field is 2000 in length so i'm assuming it's too big to handle. Any suggestions welcome. Regards, Tom.

Member Avatar
Member Avatar
+0 forum 5

Hi Everybody, FYI (In order to get a feeling with the time it takes to send command strings to signal generators via a GPIB bus, I want to send a voltage level high pulse to an oscilloscope. Ones the RF signal arrives via a detector diode, The pulse and the video signal are triggered and I can compare the timing.) I've got a twofold problem with the code I've been trying to write: 1. I want the pulse (On the serial Com1 port) coming on just before I send the command string to the signal generator (HPIB). The error I …

Member Avatar
Member Avatar
+0 forum 1

I just read on a blog about how Drew Carey started a bid $25k to buy his username on Twitter. Drew is willing to go up to 100k!!! So what about the non-celebrities out there. Would you buy your name on Twitter if someone else already has this? What do you think about this?

Member Avatar
Member Avatar
+1 forum 4

Almost every user on this board has an alias that is unique and descriptive. But also, many users create multiple alias to fit in different environment. So my questions for the members here are: 1. What does your name/alias mean? 2. What else would you like to share? 3. Does this name permeate to your offline world?

Member Avatar
Member Avatar
+0 forum 2

The End.