8,298 Topics

Member Avatar for
Member Avatar for rohitashpal

//I am creating a table in MS word using the foll code, but I am not able to move my cursor out of the table due to which my other components are getting created inside the table, what should I do to get cursor below the table. private void Drawtable_Click(object …

0
47
Member Avatar for cambalinho

i did 1 code for give me the menu position. but i'm getting problems compare the LPSTR or LPCSTR with string :( int GetMenuPosition(HMENU menu, string caption) { int i=0; for(i=0; i<GetMenuItemCount(menu)-1;i++) { MENUITEMINFO s= {0}; s.cbSize=sizeof(MENUITEMINFO ); s.fMask=MIIM_STRING; s.cch=strlen(strCaption.c_str()); //s.dwTypeData=(LPSTR)strCaption.c_str(); GetMenuItemInfo (menu,i, true, &s); string b=static_cast<char*>(s.dwTypeData); if(b==caption) break; } …

Member Avatar for cambalinho
0
866
Member Avatar for abuamidat
Member Avatar for raliot

I need a help , to make this code to sort data from text file.Any help is appreciated! file: 50 72 10 30 90 4 23 #include<iostream> #include<conio.h> void mergesort(int[],int,int); void merge(int[],int,int,int); void main() { int a[20],p,q,r,i,n; cout<<"Enter the number of elements"; cin>>n; p=0; r=n-1; cout<<"Enter the array"; for(i=0;i<n;i++) { …

Member Avatar for Maritimo
0
331
Member Avatar for justinlake888

hello... I am trying to convert 2 digit numbers to words: example 11= eleven. I saw some other entries on this but they dont include case or switch so far I have: [code=cplusplus] #include <iostream> using namespace std; cout<<"Enter a two-digit number: "; cin>>number; if(number>99) { cout<<"Number out of range"; …

Member Avatar for hermel
0
2K
Member Avatar for raliot

I'm trying to sort a deck with merge sort.I have all my code working except merge sort function . Any help would be really helpful ;) int temp; int br = 1; void push_l(int n); void push_r(int n); int pop_l(int &n); int pop_r(int &n); struct elem { int key; elem …

Member Avatar for raliot
0
294
Member Avatar for pintukennady31
Member Avatar for BibhutiAlmighty

How can i extract data from a table of a specific website ? I googled it a lot and found " HtmlAgilityPack" but didn't understand it any kind of hep wil be appreciated if possible Provide some code; Thanks in advance

Member Avatar for Suzie999
0
108
Member Avatar for asoud80

how can i Write a C++ program to display cities of USA using switch case newyork,virginia,texas,hollywood,chicago & newmexico

Member Avatar for wolfdragon
0
119
Member Avatar for Ritesh_4

Hi, I have a C# project which I want to make into a Windows installer (either .msi or .exe if possible) so that it can be deployed for e.g. in the C:\Program Files\myproject folder on any PC running Windows (and if possible limit it as from Vista onwards with a …

Member Avatar for Muhammad_71
0
1K
Member Avatar for bjf1992

show the output of the following C++ code, (assume the adress of x is 0012ff44) int x=100; int *ptr; ptr= &x; ptr=200; cout<<x<<endl; cout<<ptr<<endl;

Member Avatar for rubberman
0
117
Member Avatar for BibhutiAlmighty

I want to create a windows form application that extracts data from a website. I tried using HtmlAgilityPack but i couldn't understand it . These are the codes that I have written. private void button1_Click(object sender, EventArgs e) { HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); HtmlWeb hw = new HtmlWeb(); doc …

0
78
Member Avatar for csnerd2020

So i have this class called Numbers and I want to be able to take in doubles or integers. I know i have to use templates but I'm confused can anyone guide me in the right direction. suppose i have private member functions set to int how can I change …

Member Avatar for Maritimo
0
191
Member Avatar for nadia.batool.56863

i have to write a code on automata. the question is in conway's game of life, cell in a grid are used to stimuate biological cells. Each cel is considered to be alive or dead.At each step of its simulation, each cell's current status and number of living neighbours is …

Member Avatar for NathanOliver
0
123
Member Avatar for Tehmina_1

Suppose a company Oraflex organizes interviews for a vacant post. Assume that the interviews of the successful candidates after short listing has been started and interview marks are being assigned. You being software developer of the company are assigned a task to prepare candidates’ list that will store candidates’ information …

Member Avatar for Search_not
-2
87
Member Avatar for COKEDUDE

Where are the c programming variable name rules defined? I usually use these two websites for figuring out these kind of things but I don't see it anywhere. http://www.tutorialspoint.com/c_standard_library/c_function_scanf.htm http://www.cplusplus.com/reference/cstdio/scanf/

Member Avatar for vegaseat
0
278
Member Avatar for Yorkiebar14

Hi, I'm facing an issue where my code is working inside Visual Studio, but failing when I build the application and run it. I have tried Googling for code alternatives to where I've tracked the bug down to, and I can't find anything that works the way I need it …

0
108
Member Avatar for srentrop

The code below is a working program, but I just can't figure out how to correct the loop. I need it to loop back at the complection of case A, B, C and to end with case X. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtmProject { class …

Member Avatar for necrovore
0
248
Member Avatar for srentrop

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DiceRollTwo { class Program { static void Main(string[] args) { // Declare and initialize variables. Int32 intDiceOne = 0; Int32 intDiceTwo = 0; Random rnd = new Random(); String sResponse = String.Empty; // Greet the user. Console.WriteLine("\n\tWelcome to Vegas Dice Roller!"); …

Member Avatar for ddanbe
0
1K
Member Avatar for jeripotula

Hello. as I am new to coding , I couldnt understand how to create a login page without registration and without a database in ASP.NET & C#.net. i would like to write the code for only 1 user and the username and password must be in the code not in …

Member Avatar for glennferrie
0
576
Member Avatar for Fil_1

I have been trying to make this code work for some time now. I have had an issue geting a return from toBinary. I have all of the needed includes so do not worry about them. I am some what new to C++ and even to programing in general so …

Member Avatar for ddanbe
0
246
Member Avatar for amoabengnunez.collins

imagine you have been employed as a programmer in an organization and the company uses manual way of performing simple arithmetic calculation; develop a simple calculator that will enable the sales to perform addition,multiplication and subtraction.

Member Avatar for rubberman
0
124
Member Avatar for chubbyy.putto

I very new to C Shell. I am trying to do is read from Command line. Find the if the file is zip, .txt, symbloic link,pipe, unknow (if file is not zip, txt, sy....) here is what I what got so far. I am very stuck atm Please help me …

Member Avatar for chubbyy.putto
0
182
Member Avatar for notgreatatcode

Hi, I know the reply with this is that there is loads of threads on here with similar problems, but I have looked at them and still can not get this to work... Could someone please help me with this problem.. I am converting a Fractal from another langauge into …

Member Avatar for ddanbe
0
198
Member Avatar for Muzaffer_Ali

`use the button click event ` then type the following codes opendialog dp= new opendialog.show(); dp.location=dp.flielocation

Member Avatar for JOSheaIV
0
164
Member Avatar for andreas.petrou.967

I have write this program,how to sort the numbers? // ddd.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> using namespace std; struct nodeType { int data; nodeType *link; }; nodeType *head; int main() { // // Init the list // nodeType *first; nodeType *last; …

Member Avatar for andreas.petrou.967
0
202
Member Avatar for fabregas42

<item> <HaberKodu </HaberKodu> <Kategori</Kategori> <Sehir</Sehir> <title</title> <description></description> <pubDate></pubDate> <images> <image> 1 </image> <image> >2 </image> <image> 3 </image> <image> 4 </image> <image> 5 </image> <image> 6 </image> </images> <small_images> <small_image>1 </small_image> <small_image> 2 </small_image> <small_image> 2 </small_image> </small_images> <Aciklamalar> <Aciklamala>1 </Aciklamala> <Aciklamala> 2 </Aciklamala> <Aciklamala> 3 </Aciklamala> </Aciklamalar> <link> </link> …

Member Avatar for JOSheaIV
0
429
Member Avatar for entei

I'm fairly new to C++, I've only been learning it for 4 months now and I've been having problems with a template class file that i was creating for my project i kept getting the error [QUOTE] main.obj : error LNK2019: unresolved external symbol "public: __thiscall Intervals<float>::Intervals<float>(float,float)" (??0?$Intervals@M@@QAE@MM@Z) referenced in …

Member Avatar for Tarun_1
0
4K
Member Avatar for Muzaffer_Ali

for(int i=0;I<20; i++) { `Inline Code Example Here` messagebox.show("the values is " '"+i+"'); } else { messageBox.show("ooops vlues is greater then 20"); }

0
59
Member Avatar for alex.alekan

Hello, I'm trying to import xlsx to datagrid using oledb. but i'm geting this: Syntax error (missing operator) in query expression.I've read other related posts but didn't helped this is the code: private void button1_Click(object sender, EventArgs e) { OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\alm1.xlsx" + @";Extended …

Member Avatar for alex.alekan
0
2K
Member Avatar for dternity

I'm not entirely sure if this is the right section because I'm kind of new here, so I'm sorry if it is. I've been programming for 4-5 years now and i still se myself as a beginner. My skillset is large but the skill of the individual skills are beginner …

Member Avatar for vegaseat
0
295
Member Avatar for Louis4christ

Hi guys please I need your help. I created application in window application of C# with sql server database(.mdf) and when I installed it to the target computer, it is complaining of: unable to install or run the application. The application requires that assembly Microsoft.Synchronization Version 1.0.0.0 be installed in …

Member Avatar for javed.iqbal.3979
0
225
Member Avatar for notBADrian

Dear Developers, We run a little offine/online hat shop and we've installed a Cisco IP camera in the show-window. I want to manage the video surveillance from code. I've found an IP camera NuGet package for building an [Onvif viewer](http://www.camera-sdk.com/p_235-c-onvif-ip-camera-viewer-onvif.html) in C#, but I need more: I have to count …

0
48
Member Avatar for osama.11
Member Avatar for osama.11
0
81
Member Avatar for BibhutiAlmighty

Hello, I am trying to make a snake game in c#. Until now i have got a 'Red pictureBox' which moves according to the keys pressed and a Score Label. Now i want to add the score when the "red PictureBox" collides with another pictureBox. ---------------------------------------- I tried something like …

Member Avatar for hericles
0
237
Member Avatar for igalbk

Hi I'm using C# to work with AD (Win 2012R2). We are syncing AD users,groups and their relationship to SQL database. Full sync works well. But when using synchronization cookie, the relationship changes does not detected. What may be the reason? Thanks. Here is my code: public void DirSyncChanges(DirectoryEntry de, …

0
75
Member Avatar for BibhutiAlmighty

Hello, I am making a checkList program in c# and it's almost complete. I used the "StreamWriter" and "StreamReader" class to read and write the texts. But after closing it once when i reopen the application and add a new task in the CheckList the prrvious one gets erased from …

Member Avatar for BibhutiAlmighty
0
219
Member Avatar for VasquezPL

Hi all, I have no Idea how to implement spell checking in newly generated email. Outlook.MailItem newMail = (Outlook.MailItem)oApp.CreateItemFromTemplate(Template_eng); I want to use word inspector to check newMail.HTMLBody; - but I really dont know how to do that - and I couldnt find any example :( I used sth like …

0
91
Member Avatar for RikTelner

So I've been working with C# for 2 weeks. That's not long at all, and probably and relatively to you, I have no knowledge at all. None the less, when I'm using Microsoft Word, Skype, Mozilla Firefox. I can't imagine how this works. Apparently to get MySQL to work through …

Member Avatar for deceptikon
0
230
Member Avatar for COKEDUDE

I was reading this example of Priority queues and have several questions. http://matrixsust.blogspot.com/2011/11/basic-priority-queue-in-c.html #include<stdio.h> #include<malloc.h> void insert(); void del(); void display(); //How exactly do structs in structs work? Do you need to do anything special with them? Is this a //form of a linked list? Which part of this is …

Member Avatar for COKEDUDE
0
1K
Member Avatar for faultybits

The father of C++, Bjarne Stroustrup took part in a live Q&A via Google Hangout-On-Air. The Q & A was moderated by Patrick S, one of the moderators from the C++ Google+ Community, and Brad Y., of Pearson Ed/InformIT. The Q&A session was a public event. PS:This is not your …

Member Avatar for HiHe
0
211
Member Avatar for COKEDUDE

I am trying to cast an int value in a struct to a double. I am guessing I am screwing up the parenthesis somehow. I wasn't able to find anything useful in the forum or in google. struct START { int x; int y; double heuristic; }; struct SHAPES { …

Member Avatar for COKEDUDE
0
166
Member Avatar for owenransen

Is anybody already hosting WEB app written in C#? Are they satisfied with their hoster? Tips? I'm looking for something which will have some sort of help with 1. Simple customer database 2. Membership login and password handling 3. Payment handling (maybe) I'm hoping some company has already put together …

Member Avatar for whlookup
0
230
Member Avatar for curt.copeland

Hi there, I couple of weeks ago we have installed a new security IP camera (EasyN 187V). In addition to the basic functionalities, it supports Onvif and it has some special features (PTZ, built-in microphone, night vision, motion detection, alarm notification, etc.). The long and short of it, this is …

0
94
Member Avatar for RikTelner

Hey, is there a magical way to shorten variables in Visual C# as in PHP? For example in place of `$user_nickname`, `$user_email`, `$user_rank`. They could use `$user["nickname"]`, `$user["email"];`, `$user["rank"]`. Now if you ask me, I think the second row looks much more organized. Is such thing possible in C#? I …

Member Avatar for ddanbe
0
231
Member Avatar for javed.iqbal.3979

Hi all, I am here for a serious suggestions!!! I am new to web applicatons using C#.I want to clarify a few things please. 1). I'm using VS 2013 .Does it contains SQL Server built-in .if Yes,which version? 2).Should i head to Web Applications using MVC etc. or simply? 3). …

Member Avatar for JorgeM
0
331
Member Avatar for kegs88

I am very new to programming and im trying to create a simple stick figure that walks across the screen. I cant seem to figure out how to make him walk across. Any help would be great. THanks guys using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using …

Member Avatar for kplcjl
0
2K
Member Avatar for jjones0150

Create a form that accepts scores from the user, displays the total, count, and average of the scores, and displays a dialog box that lists the scores.This application should check the number entered by the user to make sure it is a valid integer from 0 to 100. If a …

Member Avatar for jjones0150
0
3K
Member Avatar for BobBob123

im recieving no erors but when im running it im also unable to see the mandelbrot it just displays the grey box, i understand there are other threads on this and i have attempted to use them but im currently stuck at this one point thanks for any help. using …

0
90
Member Avatar for cambalinho

from reading these site: http://www.catch22.net/tuts/flicker-free-drawing i understand that i must avoid the pixel been changed more than once and a double-buffer: //how avoid the pixel be changed more than once: case WM_ERASEBKGND: return 1; //for other controls, we must use another messsage(see the child control messages) and heres how we …

0
186

The End.