199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Timroden

I'm currently working with the NotifyIcon, and ContextMenus in the notify icon, and was wondering if it is possible to call an event when something is dropped onto the icon. For instance, if I had document.docx, and I dragged it from explorer onto the icon, it would then save it …

Member Avatar for hkdani
0
541
Member Avatar for damaia

Hi, i would like to know if there is a function in c that allows me to search for a specific character in a file, and how to use it. Thanks in advance

Member Avatar for Adak
0
1K
Member Avatar for coolsasuke

Hello , I would like to enquire if how could I put MYSQL Row to a TextBox ? Here is my code [CODE]Private Sub Form1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load MySqlConnection = New MySqlConnection MySqlConnection.ConnectionString = "server=localhost;Port=3306; user id =root; password=****; database=visualbasic" MySqlConnection.Open() Dim Myadapter As …

Member Avatar for coolsasuke
0
205
Member Avatar for shanki himanshu
Member Avatar for sharathg.satya
0
136
Member Avatar for asif49

So for the admin page of where "reviews" can be written and posted, I've created a delete article function but it's not one I wanted. The one I have now works the following way... A while loop prints out the specified information with their associated IDs. After they are all …

Member Avatar for Zagga
0
355
Member Avatar for stevanity

I made this simple program for a 2 player TiCTacToe game. But It doesnt seem to be working properly. I cant understand whats going wrong here! Please help... [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class MainFrame extends JFrame { JButton [][] buttons= new JButton[3][3]; JTextField statusBar; GamePanel panel; Integer …

Member Avatar for stevanity
0
111
Member Avatar for IndianaRonaldo

VC++ 10 gives error when libraries and headers related to libcurl are added to project.Even if curl.h is not included in the code, C2065 undeclared identifier _SH_DENYNO //this is in xiosbase... the above error comes. Is there a problem as there is no libcurl version for vc++ 10? ....libcurl works …

Member Avatar for raptr_dflo
0
254
Member Avatar for Basteon

So, I want to save an HBITMAP to different image file formats like BMP,PNG and JPEG. I believe that the most simple way to do it is by using GDI+. So here is what I came up with. [CODE]Gdiplus::Bitmap bmp(hbmpImage,(HPALETTE)0); CLSID pngClsid; GetEncoderClsid(L"image/png", &pngClsid); bmp.Save(L"D:\image.png",&pngClsid,NULL);[/CODE] The problem is that it …

Member Avatar for raptr_dflo
0
1K
Member Avatar for R3AL

I have the following 2 files: RPM.dll [CODE=C]#include "stdafx.h" #include <windows.h> #include <iostream> #include <stdio.h> char name[70]; HINSTANCE hInst; DWORD DLLFunc,DLLFunc2; HWND hWnd; extern "C" __declspec(dllexport) void myRPM(HANDLE hProcess,LPCVOID lpBaseAddress,LPVOID lpBuffer,SIZE_T nSize,SIZE_T *lpNumberOfBytesRead) { __asm { mov edi, edi push ebp mov ebp, esp jmp [DLLFunc] } } extern "C" …

Member Avatar for raptr_dflo
0
247
Member Avatar for Tauren

How would I extract the public and private key and put them into seperate blobs? So after I use if (!CryptGenKey(hProv, CALG_RC4, CRYPT_EXPORTABLE, &hSessionKey)) It puts the Keys into SessionKey, but what if I want to extract both the public and private key from hSessionKey, how can i do this?

Member Avatar for raptr_dflo
0
414
Member Avatar for Labdabeta

I am still unable to get OpenGL Vertex Buffer Objects to work. I will just show you the code I have written so far: 3dglgui.h (I think this should be fine): [CODE]#ifndef CLASS_NAME #define CLASS_NAME "OpenGL Windows Class"//This can be overwritten to specify a unique class name #endif //Header Guards …

Member Avatar for raptr_dflo
0
160
Member Avatar for DeftArcher

The point of the program is to read from the file and then output to the other file, we HAVE to use an array as well as a function to do this. The problem I am running into is well... several problems. When I try to run the program I …

Member Avatar for raptr_dflo
0
395
Member Avatar for Javaid1

What is the difference between "G1" and "G1 " Particularly in this context if (memcmp (buf, "G1", 2) == 0) if (memcmp (buf, "G1 ", 3) == 0) Is this correct for "G1 "?

Member Avatar for raptr_dflo
0
114
Member Avatar for skiboy209

[CODE]#include <iostream> #include <string> #include <windows.h> using std:: cout; using std:: cin; using namespace std; int main() { unsigned long n; char Answer; string mystr; do { do { cout << " What is your name? "; getline (cin, mystr); cout << "Hello " << mystr << ".\n"; cout << …

Member Avatar for raptr_dflo
0
187
Member Avatar for David321

I've been having some trouble making the knights tour (getting a knight to go around a chessboard without touching the same square twice) work correctly. Right now the max amount of moves I can get out of it is 59. I can't figure out any reason why it shouldn't go …

Member Avatar for raptr_dflo
0
668
Member Avatar for existinglady

Can someone help me? after exiting the program.. the student record.txt becomes empty after i restart the program.. so far Im only after the name, last name, and student id because i dont want to confuse myself more but if someone could teach me here i might implement other datas.. …

Member Avatar for raptr_dflo
0
127
Member Avatar for jeffc418

Hello! I have been doing my reading on log-in/username system security and I want to post what I have done! I still feel like my system is lacking in security, so I'd love any and all input! I've completely obscured the MySQL table values to my liking (A LOT of …

Member Avatar for bjlotus
0
2K
Member Avatar for kambi09

hi there please see my header file and cpp file, when i compile them i get these error classes.cpp:86.1: error: "vehicle::vehicle" names the constructor, not the type classes.cpp:172.1: error: "driver::driver" names the constructor, not the type here is my header file [code]#ifndef CLASSES_H_INCLUDED #define CLASSES_H_INCLUDED #include <iostream> #include <string> using …

Member Avatar for raptr_dflo
0
4K
Member Avatar for Clexify

[CODE]int main() { int num=2; int i=0; int user_num,x; cout<<"enter a number(number>4)"<<endl; cin>>user_num; int a[100]; for (i=0;i<100;i++) { a[i]=0; } while(num<=user_num) { x=2; while(x<=num) { if(num%x==0) { break; } x++; } if(x==num) { a[i]=num; i++; } num++; } int b[100]; for (i=0;i<100;i++) { b[i]=a[i]; } for (i=0;i<100;i++) { for(int j=1;j<100;j++) …

Member Avatar for raptr_dflo
0
333
Member Avatar for mikejs

Gi I have a DataGridView which populates from an SQL query just fine in default mode using these table names [CODE][firstName] [varchar](20) NOT NULL, [lastName] [varchar](20) NOT NULL, [rentpaid] [decimal](18, 0) NOT NULL, [datePaid] [date] NOT NULL, [propRef] [varchar](10) NOT NULL, [rentDue] [decimal](18, 0) NULL,[/CODE] I have edited the column …

Member Avatar for adam_k
0
122
Member Avatar for khentz
Member Avatar for Unhnd_Exception
0
93
Member Avatar for niche1

I have a html script with some JS and a php script that produces a comma delimited string of suggestions of first names to enter into an input field. It only works for "B" names right now. I need to turn this script into a combo box and can't think …

Member Avatar for niche1
0
164
Member Avatar for jigglymig

need some help turning this single linked list into a circular linked list. I am completly lost on how to get the first node and link it to the last one [CODE]#include <iostream> using namespace std; struct node { int Item; node* Next; }; // end struct node* Head; typedef …

Member Avatar for raptr_dflo
0
217
Member Avatar for zack654

I would like to sharpen my PHP skills on coding web sites. Is there some web site templates which are ready for coding so I can make them functional without touching HTML or CSS? I am not very good with HTML and CSS, I find free templates like this all …

Member Avatar for zack654
0
300
Member Avatar for kk33

Hi all , here is my code for GET request to a http site, but it keeps taking memory nor releasing it, here is the code: [CODE] while(1) { hSession = WinHttpOpen( L"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0", WINHTTP_ACCESS_TYPE_DEFAULT_PROXY, WINHTTP_NO_PROXY_NAME, WINHTTP_NO_PROXY_BYPASS, 0); if (hSession) hConnect = WinHttpConnect( hSession, L"lalala.com", …

Member Avatar for anirudh33
0
315
Member Avatar for NeeharikaSingh

Hi der i want to download visual studio......i m facing trouble in downloading.........help me to find out link to get it

Member Avatar for NeeharikaSingh
0
62
Member Avatar for watoth

Ok im not sure what it is I need. But I have a sort of fantasy baseball website that I want to add something to. I want to see what players have been on the most championship teams. I just don't know how to query the players against the results …

Member Avatar for BitBlt
0
109
Member Avatar for Paaat

Hello, I've been trying to solve this problem that has faced me many times on my website.. I have written a forum program. It works perfectly. However, sometimes a user tells me that he tried to post his comment, but his comment didn't appear on the page, and that he …

Member Avatar for Paaat
0
158
Member Avatar for Singlem

[CODE]select CS.Ref, CS.C, DT.ID, DT.Init, DT.Surname, 'C' [P], 'C' [A], 100 [M], case when Convert(Varchar(10),CA.A,120) is null then Convert(Varchar(10),CS.DC,120) else Convert(Varchar(10),CA.A,120) end, C.R, Convert(Varchar(10),C.CDate,120), Do.Outcome, CT.PhysicalOwner, Convert(Varchar(10),CS.CDate,120), Convert(decimal(8,2),CS.B, Convert(decimal(8,2),CS.CB), Convert(decimal(8,2),CS.IB), Convert(decimal(8,2),CS.Calance), Convert(money,SUM(dd.C)), Convert(money,SUM(cl.C)), CT.CID[Cust_ID], Convert(varchar(10),CS.JDate,120), CS.JCN, CO.C, Convert(varchar(10),CS.OD,120), CS.OCN, CO2.C from table1 CS inner join table2 DT on DT.DID = …

Member Avatar for BitBlt
0
654
Member Avatar for Onlineshade

How to take input in a array in Java? my code is.... [CODE] String[] array=null; Scanner sc = new Scanner(System.in); System.out.println("How many Numbers:"); String r = sc.nextLine(); Scanner sc1 = new Scanner(System.in); System.out.println("Enter Number:"); for (int m = 0; m < r.length(); m++) array=sc1.next();[/CODE] I cant do this. Please help.

Member Avatar for Ezzaral
0
116
Member Avatar for caseyl89

Hi so i'm working on a project in c#. I have hundreds of xml files and I need to extract 6 values from each of the xml files and somehow display them on an excel datasheet. Here is an example of the xml file: [code] <XAxisCalib> <Max>288.93</Max> <Min>-48.08</Min> <MaxS>200</MaxS> <DfTHt>0</DfTHt> …

Member Avatar for caseyl89
0
1K
Member Avatar for WolfShield

I have some program ideas that I would like to build for PC, Mac, and Linux/Unix. The process I have in mind is to write the core libraries in C++, then program each UI based on OS. Windows: C# Mac: Objective-C and Cocoa Linux/Unix: C++ and GNome/Gtk But, I only …

Member Avatar for mike_2000_17
0
216
Member Avatar for MrAppleseed

I was looking up the stack, and trying to implement it in an array, and came across this code: [code=C++]void push(STACK *ps, int x) { if (ps->size == STACKSIZE) { fputs("Error: stack overflow\n", stderr); abort(); } else ps->items[ps->size++] = x; } [/code] I know what it all does, except the …

Member Avatar for MrAppleseed
0
118
Member Avatar for soomro_moon

value is not showing in the combo box <? $cn=mysql_connect("localhost","root"); mysql_select_db("test",$cn); // Make a MySQL Connection // Construct our join query $query = "SELECT one.name,two.address FROM one,two where one.name=two.name"; $result = mysql_query($query) or die(mysql_error()); echo " name "."address"; echo "<br />"; while ($row=mysql_fetch_array($result)){ echo $row['name']. " - ".$row['address']; echo "<br …

Member Avatar for Rhamises
0
203
Member Avatar for lynnb86

I have my project done in NetBeans, and it runs fine with no errors. However, when I try to compile the main class it says : C:\Users\Lynn\Documents\NetBeansProjects\EmployeeInfo\src\employeeinfo>javac Emp loyeeInfo.java EmployeeInfo.java:35: cannot find symbol symbol : class Name location: class employeeinfo.EmployeeInfo Name saveInfo; ^ EmployeeInfo.java:83: cannot find symbol symbol : class …

Member Avatar for lynnb86
0
306
Member Avatar for mikejs

Hi I have a form which populates a TextBox I want to use the textBox.text to then load a gridView with the results something like [CODE]Private Sub TextBoxId_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBoxIdSearchExist.TextChanged Dim cmd As New SqlCommand("select * from pay Where t_id='" + tId.Text + …

Member Avatar for Oxiegen
0
1K
Member Avatar for maxypro

Hello Everyone, I`m New to java. I need to search a jtable when i`m typing in a jtext field.As an example if i`m serchin my jtable by customer id and in j table it has customer id`s like 10021 and 10022 when i have typed"1002" the jtable should show both …

Member Avatar for Onlineshade
0
185
Member Avatar for Majestics

I am starting this thread to gather some useful information before i start my work I am working on a project which takes user information and store it in database.. Now each user has seperate department's. I simply want to attach the user information to pre-configured outlook with department email.... …

Member Avatar for Onlineshade
0
180
Member Avatar for luddite

I have a log in page for users, which if the login name is valid takes user name and puts it into a session.setAttribute(“user”, String); the user then gets redirected a userspage.jsp. At that page I can get the “user” using : <% getAttribute = (String)session.getAttribute("user"); %> the user is …

Member Avatar for luddite
0
156
Member Avatar for terrymold

I have a fairly simple PHP page which is giving me some bother, and I'm hoping someone here can point me in the right direction to correct it. In the HEAD section there is a bit of CSS... [CODE].messText { position: absolute; width: 600px; top: 250px; margin: 0 auto; font-family: …

Member Avatar for ko ko
0
148
Member Avatar for aldeene

why this code is not working?, error: non-static variable jTextField1 cannot be referenced from a static context [CODE]try{ Connection con = DriverManager.getConnection("jdbc:mysql://localhost/sample", "", ""); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT name FROM testtable"); while (rs.next()){ String n = rs.getString("name"); jTextField1.setText(n); } stmt.close(); con.close(); }catch(Exception e){ [/CODE]

Member Avatar for Onlineshade
0
1K
Member Avatar for 11684

Hi, I just started programming in Java, and now i tried to compile a file with the Mac Terminal (Command-line), but it did only give me an error which i couldn't explain, because this code did work in Eclipse compiler. Here's my code: [code="java"] class HelloWorldApp { public static void …

Member Avatar for 11684
0
264
Member Avatar for akasekaihime

I created a regform as a program but my problem is the total units is not displayed.....how can I make it compute the total units and display it........ here is the code that I made... [CODE]import java.io.*; public class regform { public static void main(String args[])throws IOException { BufferedReader br= …

Member Avatar for NormR1
0
155
Member Avatar for jacksantho

Hi, Please help me out . I need to retrieve the records from 11th row onwards using select query. Please help me out . Its urgent. Thanks

Member Avatar for adam_k
0
330
Member Avatar for jashbela

Hi, I wrote this code to add 10 numbers and find their average. It will not out put average. What am I doing wrong? Thanks for the help. [CODE]#include <iostream> using namespace std ; int main ( ) { double Sum; double Average; double Numbers[10]; int K; Sum = 0; …

Member Avatar for Onlineshade
0
153
Member Avatar for shxrainz

hye.. I have a database call student which consists of all students information and also student id.. i have created a form that admin have to insert all the data about student.. then after admin click a save button, i want to display all the information also with the student …

Member Avatar for Ezzaral
0
149
Member Avatar for ibthevivin

I'm having trouble with my C++ assignment because when I run the program I can't type more than one word on the "Enter your street name" line or it won't work. My teacher said something about "getline" but he really lost me. Here is what I have. Please help! [code] …

Member Avatar for Narue
0
295
Member Avatar for router.exe

I'm taking over a legacy project at my job. Currently there is an issue running the app on Windows 7 that requires the user to run the app as administrator for full functionality/database connectivity. I have no experience with writing apps that need elevation. Where/What should i be looking for …

Member Avatar for sknake
0
224
Member Avatar for supriya badam
Member Avatar for Shilpa Gonge

ust select SMTP control from Components ( under project menu (visual basic)) With SMTP 'name for control .Server = outgoingserver 'Outgoing server name or IP address .MailFrom = mailFrom 'Sender mail address .SendTo = mailto 'to whom you want to send mail .MessageSubject ='Subject of message .MessageText = mailtext 'mail …

Member Avatar for QVeen72
0
390

The End.