43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Habib_7

I'm learning win32 programming from [Here](http://www.functionx.com/win32/Lesson03.htm) and I have problem in part of tutorial about string table it gives me this error: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with …

Software Development c visual-studio windows-api
Member Avatar for Habib_7
0
320
Member Avatar for Satyam_1

In vb.net application , I open the form2 from form1 by btn event with following code. But if the user minimise it and again open it from the button event, there are 2 forms in the taskbar... I want the same form2 is opened everytime without multiplication of forms in …

Software Development vb.net
Member Avatar for Satyam_1
0
275
Member Avatar for PinoyDev

Good day! I have the following sub-query that generates payroll report by a given date with format **(dd/MM/yyyy)** but I do not know why MSAccess **automatically changed it to (MM/dd/yyyy)** thus I am getting incorrect data. My regional date settings in **control panel is set to (dd/MM/yyyy)** format as well …

Software Development microsoft-access vb.net
Member Avatar for PinoyDev
0
281
Member Avatar for samuelneves

Hi everyone, hope you're doing fine... I'm new here and I just find Daniel Web when I was trying to understand why this message keeps appearing: "cannot find lgd2" and "cannot find lgd" [Click Here](http://pt-br.tinypic.com/r/20qhs0i/8) I don't get why this keeps appearing cause I went to Project>Build Options...>(Selected the name …

Software Development c
Member Avatar for Moschops
0
219
Member Avatar for segadude

For my (online) programming class, I have to format certain output in columns using setw. I am having trouble understanding how to do this. My professor says that I am supposed to be creating columns, not counting characters to align things. I haven't been able to find any examples of …

Software Development c++
Member Avatar for NathanOliver
0
207
Member Avatar for JohnMcPherson

I am having a problem with reading input data after checking a position marker in the data file. The code that does the reading follows: fip = fopen("fprmf.txt","r"); . . . strcpy(passw,"P7"); fscanf(fip, "%3s", ckod); /* card # 164 */ fprintf(ff16,"\n\n%12s%12s\n", "card# 164 :", "Password "); printf("passwd is %s\n", ckod); …

Software Development c
Member Avatar for Nutster
0
802
Member Avatar for Doogledude123

I need a boolean to be stored with a String (or possibly a Path, not sure which one I want to use yet). I thought about using a Map, so I did some looking around and found out that LinkedHashMaps are the only type of Map that stay in Order …

Software Development file-system java
Member Avatar for Slavi
0
305
Member Avatar for savedlema

Greetings everyone! I have some codes in my application which makes a backup of mysql database and save the backup .sql file to a location on the hard disk. I made the code in like 2013/early 2014, I think I was then using a now older version of mysql, it …

Software Development mysql vb.net
Member Avatar for savedlema
0
361
Member Avatar for SoftSoul6Co

I have a 3 character fkLookup field sat_site in a table. I'm using TAdsTable table component. When I filter out records in my grid on a field sat_site, grid does not show any records. With ShowMessage() I check the value of field sat_site which shows blanks or boxes in the …

Software Development dataset delphi pascal
Member Avatar for SoftSoul6Co
0
490
Member Avatar for Saran_1

I have the CSV with the following column headers: "G","Association","Subset","Rank","First Name","Last Name","Middle Name","Date of Birth","SS","Drivers License Number","Address","Phone Number","A","CF","CM","I","F","J","CN","I","CN" The Output XML format is what I seek: <GIs> <GIR> <G></G> <GM> <FirstName></FirstName> <LastName></LastName> <MiddleName></MiddleName> <FullName></FullName> <DateofBirth></DateofBirth> <SS></SS> <DriversLicenseNumber></DriversLicenseNumber> <Address> <AddressText></AddressText> <Latitude></Latitude> <Longitude></Longitude> </Address> <PhoneNumber></PhoneNumber> <A></A> <CF></CF> <CM></CM> <Association></Association> <Subset></Subset> <Rank></Rank> <I></I> …

Software Development python xml
0
114
Member Avatar for SoftSoul6Co

I have 5 date fields in a table. I want to place CheckBoxes against each date field to allow user to check the appropriate date for the employee's weekly holiday. I do not have boolean fields in the table. How can I place CheckBox against each date cell in a …

Software Development delphi pascal
Member Avatar for SoftSoul6Co
0
1K
Member Avatar for cambalinho

heres my function for select the font: CHOOSEFONT ShowSelectFont(HWND hwnd=GetForegroundWindow()) { CHOOSEFONT cf = {sizeof(CHOOSEFONT)}; LOGFONT lf; cf.Flags = CF_EFFECTS | CF_INITTOLOGFONTSTRUCT | CF_SCREENFONTS; cf.hwndOwner = hwnd; cf.lpLogFont = &lf; cf.rgbColors = RGB(0,0,0); cf.lpLogFont->lfStrikeOut=FALSE; cf.lpLogFont->lfUnderline=FALSE; cf.lpLogFont->lfHeight=-MulDiv(12, GetDeviceCaps(GetDC(hwnd), LOGPIXELSY), 72);//change font size _tcscpy(cf.lpLogFont->lfFaceName, "Arial" ); //we must include tchar.h if(ChooseFont(&cf)) { …

Software Development c++
Member Avatar for cambalinho
0
1K
Member Avatar for hwoarang69

![year.png](/attachments/small/3/7e8a738796e0d938dcd6d9512b905f5f.png "align-right") first take a look at attachment pic to get a idea. I have two dropDownLists.1st dropDownList ID is cboPrev(oPrev) and 2nd dropDownList ID is cboNext(oNext). These both DropDownList will have the following 4 items (2014, 2015, 2016, 2017). User can click on dropdownlist and pick a year. # …

Software Development vb.net
Member Avatar for Mr.M
0
495
Member Avatar for One more line

I would like to say hello, first of all. I have been attempting to change the color of a character on my program for some time now. The characters in question will represent lava tiles with the letter "L" in my program. I would like to know how I can …

Software Development c++
Member Avatar for Maxime_2
0
4K
Member Avatar for getanshub4u

Any good beginner books on python? I want to learn python easy and fast.I have coded some basic programs in c,c++,Java. Wanna learn python for scripting in linux.

Software Development python
Member Avatar for dewhales
0
450
Member Avatar for cambalinho

i have these function for get the string size: SIZE GetStringSize(string text, HWND hdccontrol=GetForegroundWindow()) { RECT textrect={0}; HDC txthdc=GetDC(hdccontrol); DrawText (txthdc,text.c_str(),-1,&textrect,DT_CALCRECT); ReleaseDC(hdccontrol,txthdc); SIZE a={textrect.right-textrect.left, textrect.bottom-textrect.top}; return a; } the 1st string size isn't correct. then i get the correct one. so why i get, sometimes, the wrong size? something to …

Software Development c++
Member Avatar for cambalinho
0
396
Member Avatar for halo_123

1)Create a list of the odd numbers between 1 and n (include 1 as well as n -- if it's odd-- in the list). Associate the list with the variable odds . 2)Given the list my_list containing integers, create a list consisting of all the even elements of my_list . …

Software Development python
Member Avatar for PartVIII
-11
2K
Member Avatar for Saboor880

Hello to all! I have learnt VB.net and used IDE Visual studio 2012. Know I have started learning java. But I have a confusion that can Java be used with .NET frame Work? If Yes then which IDE is required for this. As we know that for VB.Net, C#.Net and …

Software Development asp.net ide java visual-studio
Member Avatar for JamesCherrill
0
284
Member Avatar for Mr.UNOwen

Hello, For some reason javac errors when I import any of the Apache-Spark classes. I've gone through a number of setup guides to see if there's some environment variable I'm missing, but most don't have a step where an environment variable is set. Anyone have a clue what I'm missing? …

Software Development apache java
Member Avatar for Mr.UNOwen
0
2K
Member Avatar for jamesjohnson25

Q 1) In this small snippet #include <stdio.h> void passingAddressOfConstants(const int* num1 , int* num2) { *num1 = num2; } int main(){ const int limit = 100; int result = 5; passingAddressOfConstants(&limit,&limit); } Error : error: invalid conversion from 'const int*' to 'int*' Here I defined "limit" is of type …

Software Development c++
Member Avatar for aleeha.saqib.5
0
225
Member Avatar for Mahnoor_1

Ok guys ! I'm trying to study operator overloading. which i found the toughest article in OOP :( I tried a code for == operator overloading to check whether both arrays have same elements or not but it isn't working. Can anyone help? Here is my code: #include<iostream> using namespace …

Software Development c++ oop
Member Avatar for aleeha.saqib.5
0
241
Member Avatar for ddanbe

Hi all, I need to obtain the fractional part of a double. AFAIK C# and .NET has no such function. Have a few options here:(x is a double) `x - (int)x` `x - Math.Truncate(x)` Convert to a string and extract the fraction... Perhaps someone knows other options? Which should I …

Software Development
Member Avatar for JOSheaIV
0
662
Member Avatar for cambalinho

the GetDesktopWindow() give me the desktop HWND, but how can i get the desktop toolbar HWND? i belive that theres 1 function for get the toolbar on windows, but i don't know how :(

Software Development c++
Member Avatar for cambalinho
0
158
Member Avatar for Mahnoor_1

I have a little confusion in my mind. I know very well the difference between preincrement and postincrement, postdecrement and predecrement. But i wonder how do these operators work during loop. I ,myself, use postincrement or decrement in loop as follows: for(int i=0;i<5;i++) { //code } But in my book …

Software Development c++
Member Avatar for Mahnoor_1
0
282
Member Avatar for Mike Askew

Ok time for the 2nd dumb question of the day that I should probably already know the answer too.. I have `string.Format(" {0, -22} | {1, 5} of {2, -5} | {3, 5}% | ` where `{3}` is a double that is being used for a percentage. The longest allowed …

Software Development
Member Avatar for Mike Askew
0
174
Member Avatar for meLiel

hi programming masters! i need your help..how can i SEARCH a record in a database and display the results?? example: if i type an ID number or a name on the text box and click the search button it will look for the records and display it.. i have a …

Software Development cybersecurity gui seo visual-basic
Member Avatar for Reverend Jim
0
12K
Member Avatar for prashantkaushal

Hi there, yesterday I tried a very basic cgi program, which comes with xampp 1.7.1 in cgi-bin directory. but my browser said: "You don't have permission to access the requested object. It is either read-protected or not readable by the server." The perl code is : [CODE] #!"C:\xampp\perl\bin\perl.exe" print "Content-type: …

Software Development html-css perl
Member Avatar for Samuel_6
0
7K
Member Avatar for Mike Askew

So I have recently come across `string.Format("{0, x}", "Word")` for aligning strings, with demonstration code that works fine in the CMD. Does this also function correctly when pumping text to a label? I am finding that it does not behave as expected and instead misaligns the text. Using an example …

Software Development
Member Avatar for Mike Askew
0
257
Member Avatar for Himanshu Chawla

I newbie in JSON Programming . I have scratched to much youtube and also google about the retrieve of data into string json using C# windows form application .. I haven't found anything till now. Please give a example and step by step procedure of how to retrieve the data …

Software Development json
Member Avatar for aclx
1
14K
Member Avatar for weekendrockstar

I really tried with the title! I could not find what I was looking for through google or here. Seemed like something that could be common enough that I'd find it online already but perhaps it's so simple that no one had a problem doing it so they did not …

Software Development dataset vb.net xml
Member Avatar for weekendrockstar
0
228
Member Avatar for Amiet_1

I have uploaded an Image into database through C# application. Here is my code. FileStream fs1 = new FileStream(toolStripLableClientSelectedImage.Text, System.IO.FileMode.Open, System.IO.FileAccess.Read); byte[] image = new byte[fs1.Length]; fs1.Read(image, 0, Convert.ToInt32(fs1.Length)); fs1.Close(); SqlCommand cmd = con.CreateCommand(); cmd.CommandText = "INSERT INTO tblClientDetails ([clFname], [clName], [clAddress], [clCity], [clState], [clPhone1], [clPhone2], [clEmail1], [clEmail2], [clProfession], [clPhoto]) …

Software Development file-stream file-system
Member Avatar for Amiet_1
0
994
Member Avatar for Satyam_1

In vb. Net application i have a combobox with properties- custome source autocomplete Dropdownstyle- dropdown I use string method to autocomplete combobox from custom source of database. I want to cleat text from the combobox after save button event. I use following code for that but its not working. Combobox.selectedindex=-1

Software Development html-css vb.net
Member Avatar for Satyam_1
0
257
Member Avatar for shailamureed

Hi i have an assigment that is giving me a hard time . I want to make a media player in java by using netbeans Can anyone give me an efficient way to do this assigment. please help me shoaib in java [Click Here](http://www.daniweb.com/software-development/java/9/contribute)

Software Development java java-netbeans
Member Avatar for JamesCherrill
0
392
Member Avatar for usmanjani

C++ HELP: hello i made a program where user enter any message then fing its frequency and push it on the queue and sort it i want to sort it again by which element in the same piority entered please anyone can help>? for example for this message: "Eerie eyes …

Software Development c++ queue
Member Avatar for usmanjani
0
254
Member Avatar for Brandon500

Hello everyone I'm having trouble with this program in Python called sumList(nums). I already tried to program it, but I get the incorrect output. The program is suppose to get the summ of numbers entered into a list by the user. Mine does not return the sum just the first …

Software Development python
Member Avatar for BustACode
1
1K
Member Avatar for zamm65

Good afternoon to all i am currently working on a logistics project, where in one of the forms the user needs to select a shipment number and other information related to the shipment. the form is made up of 4 dropdowns a textbox and a gridview as follows. **The Dropdowns …

Software Development display html-css vb.net
Member Avatar for Santanu.Das
0
225
Member Avatar for jmensah

below is a code which new password entered and compare with the confirmed password. At run time, it doesn't show error but when input password diferent that of the confirmation, it doesn't give any matching error. please below why the system allow me to move to the next. [code] Private …

Software Development vb.net
Member Avatar for Mr.M
0
5K
Member Avatar for laguardian

Hello guys! I'm trying to call a method in main called "buyProduct" which displays all products to the user. I' a getting a NullPointerException though. Here's what I have: public static void main(String[] args) { OnlineShopping shop = new OnlineShopping(); ArrayList<Cart> carts = new ArrayList<Cart>(); ArrayList<Order> orders = new ArrayList<Order>(); …

Software Development java
Member Avatar for laguardian
0
378
Member Avatar for ogsirus

Hi guys, I have written a program which currently accumalates different pairs and their frequency from an excel spreadsheet. (1280 pairs) Want I want to achieve is from the top 20/30 pairs, if I can find pairs that link e.g. Pair 1 [1,33] and Pair 100 [1,232] so i would …

Software Development
Member Avatar for ogsirus
0
262
Member Avatar for Simon180

Can anyone help me out with abit of code that will detect the location of any exe file on a hard drive / cd? am trying to build a simple exe launcher thanks.

Software Development hard-drive pascal
Member Avatar for Simon180
0
231
Member Avatar for laguardian

Hello guys! I'm working a project and it seems that there's something wrong with my switch-case. For example, in the user menu, the user can input the number 2 then it would allow them to deposit, but somehow, it keeps displaying the first switch-case. switch(resp){ case 1: users.get(0).displayProfile(); users.get(0).editProfile(); break; …

Software Development java perl
Member Avatar for stultuske
0
213
Member Avatar for Lethugs

Hi My vs stopped working everytime i click datagridview Probelem Signature: Problem Event Name: CLR20r3 PS 01:devenv.exe PS 02:10.0.30319.1 PS 03:4ba1fab3 PS 04:System.Drawing PS 05:4.0.0.0 PS 06:4ba1e086 PS 07:49 PS 08:1f PS 09:System.InvalidOperationException Locale ID:1033 Additional information about the problem: LCID:1033 Please Help, Thanks

Software Development vb.net visual-studio
Member Avatar for Reverend Jim
0
406
Member Avatar for Christina_4

I am working on an 8 queens problem, I am to place all 8 queens on the board before figuring out if they will attack one another. I am attempting to do this using a 2d array. How do I create random queens (1's) for each row, but making sure …

Software Development java
Member Avatar for JamesCherrill
0
375
Member Avatar for iansane

Hi, I am writing a program to read from a file. I want to ask the user for the file name to open. I have tried to use the basic open file code from cplusplus.com and it won't work unless I specify the file name in the code. If I …

Software Development c++ file-system
Member Avatar for Jaja19
0
17K
Member Avatar for nathan.pavlovsky

Hi all! I am working on creating an SMS language translator (SMS -> real English), and I am having trouble initializing a map for the SMS -> English codes. My code is below: map<string, string> THE_SMS_CODES{ ".02","Your (or my) two cents worth", "10X", "Thanks", "2MI","Too much information", "2U2" ,"To You …

Software Development algorithm audio c++
Member Avatar for nathan.pavlovsky
0
688
Member Avatar for hwoarang69

I am new at vb .net and I want to know how to make website in it? like connect two papes or using header in different file and linking it together etc.. for some reason when I create a page than vb studio automatic adds a form tag and creates …

Software Development asp.net vb.net visual-basic
Member Avatar for djjeavons
0
3K
Member Avatar for matoo

Hi there Everyone I am writting a program POS in which i have employees database. they get a code or we can say employee ID numbers. 100001 100002 100003 now i want to keep the recourd attached with picture ID as well file names will be 100001.jpg 100002.jpg 100003.jpg as …

Software Development visual-basic
Member Avatar for matoo
0
272
Member Avatar for Papa_Don

Group, I've got a complex If/Then statement that may require the use of "Select Case". However I'm not familiar with how "Select Case" actually works. Needless to say, I'm not sure if you can use it within an "If/Then" statement. Here's what I need to do: If row > 7 …

Software Development vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for westsiderailway

Hello Everyone, it seems that I cannot see the wood for the trees.... :-) I am having problems with this line of code... StateSQL = "select * from petrol_table where fueldate >= " & "'" & M12S & "'" & " and fueldate < " & "'" & M12F & …

Software Development dataset listview open-source sql vb.net
Member Avatar for westsiderailway
0
321
Member Avatar for shanenin

I don't understand why my function is not giving similar output as the first example of powershell code PS C:\Users\shane> $x = 3 PS C:\Users\shane> $y = 6 PS C:\Users\shane> $a = $x + $y PS C:\Users\shane> Write-Host "The answer is $a" The answer is 9 My function using similar …

Software Development shell-scripting
Member Avatar for shanenin
0
340

The End.