8,298 Topics

Member Avatar for
Member Avatar for khorght

Hi to all. I'm trying to use hidapi.dll,if needed i'll post a sources or link to authors page. Here's what i've have in my dll: #define HID_API_EXPORT __declspec(dllexport) #define HID_API_CALL ... int HID_API_EXPORT HID_API_CALL hid_write(hid_device *device, const unsigned char *data, size_t length); ... and this is the part in c#: …

Member Avatar for Nidal_1
0
921
Member Avatar for overwraith

Hello, I was doing some research on enumerating the different drives on a system, and I found some code on MSDN. Here is the page: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364975%28v=vs.85%29.aspx The source code looks like this: DWORD dwSize = MAX_PATH; char szLogicalDrives[MAX_PATH] = {0}; DWORD dwResult = GetLogicalDriveStrings(dwSize,szLogicalDrives); if (dwResult > 0 && dwResult …

Member Avatar for overwraith
0
266
Member Avatar for ??!!

hey guys i just need someone to help me out in parts (c) and (d) of the following question: a- Implement the function f(a,x)=sin(ax)/x. (the prototype is double f1(double a, double x). Note that this function is equal to a for x=0. (6 points) b- Write a code that asks …

Member Avatar for shvmgyl15
-1
164
Member Avatar for Lp_baez

I am currently learnning c++ from a text book. but I have come accross an error when trying to run the program. The error reads like this: fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source code? …

Member Avatar for Lp_baez
0
387
Member Avatar for Karan_4

Please Explain me the code A a = b as A; Iam confused with it public class A { public virtual void One(); public void Two(); } public class B : A { public override void One(); public new void Two(); } B b = new B(); A a = …

Member Avatar for ddanbe
0
102
Member Avatar for Pilot122x

Alright guys I need some assistance with this. Ok In a few days I will start my project but I need to how to do something, Read Below: I need to find out how to display a Users specific table within My MySQL database for example here is a picture …

Member Avatar for Pilot122x
0
274
Member Avatar for raajsj

hi all, Im working with a asp.net c# application and using sql server, as my database and using stored procedures. And i've to generate dynamic check box and button's.which is users can click the checkbox and when user can submit at the time i have to get checked checkbox values …

Member Avatar for raajsj
0
5K
Member Avatar for mesbahuk

I have a Java code block like following: public TcpConnection(TcpSocket socket, long alive_time, ITcpConnectionListener listener) { init(socket,alive_time,listener); start(); } For the conversion in C#, When I try to replace the `start()` method with `System.Threading.ThreadStart()`, it gives an error. How can I start a thread in C#?

Member Avatar for ddanbe
0
282
Member Avatar for jaimin4829

I have created an application which compress & convert a file in .rar or .zip format.But it can't be open and give error that the file is damaged!!! string filetocompress = txtSourceFilePath.Text.Substring(txtSourceFilePath.Text.LastIndexOf("\\")+1); MessageBox.Show(filetocompress); FileStream sourcefile = File.Create(txtSourceFilePath.Text); FileStream destination = File.Create(txtTargetFilePath.Text + filetocompress + ".gz"); byte[] buffer = new byte[sourcefile.Length]; …

Member Avatar for shadyreal
0
2K
Member Avatar for liveland

I'm looking for an easy way to be able to post to all of the main social networks including: Twitter, Facebook, Google+, Delicious, Stumbleupon and Pinterest (the first 3 being the most important to me). I'd like to be able to perform this functionality from a C# desktop application that …

Member Avatar for shadyreal
0
158
Member Avatar for shadyreal

A bit of background information: Im running Windows Server 2008 R2 Standard, on a virtual server. The program is a service with a service installer. The service has a couple of performance counters to show the data performance. To be able to do this I need to create a category(I …

0
82
Member Avatar for fhau013

could you please help me we're doing our independent study about visual c# 2008 could please teach ne how to connect mysql to C#? thanks for the help:)

Member Avatar for ddanbe
0
90
Member Avatar for jasfer

Hi guys! can anyone help me with my problem? I'm making my project regarding I.D. System and I need to connect this Bamboo digital pen and touch, to use it as the signature for the I.D. Thank you in advance! :)

Member Avatar for ddanbe
0
185
Member Avatar for mesbahuk

I'm currently working in a java to c# conversion project. In one part I got this Java code snippet. public CustomType someMethod(Message msg) throws IOException { byte[] data = msg.toString().getBytes(); } to my understanding, data contains the byte representation of the string *msg.toString()* But when I try to write it …

Member Avatar for mesbahuk
0
266
Member Avatar for valipour

Hi i created class a and b is it's child (a:b) public class a { string text = "class a"; public void alert() { MessageBox.Show(text); } } public class b : a { string text = "class b"; } b myb = new b(); myb.alert(); but when i call alert() …

Member Avatar for sepp2k
0
243
Member Avatar for sireesha.c

Hi all, Can u plz tell me as how to upload images. I am developing an web application similar to picasaweb album. I need to know as where the images to be saved(is it in database directly each image or just image path in database and files in application folder) …

Member Avatar for kavita Tambe
0
492
Member Avatar for fhau013

what ide can i use for c# programming? except for visual studio? thank you :)

Member Avatar for fhau013
0
237
Member Avatar for Dashien

Hello All; I'm not a student nor is this a project I am beginning a programming project of my own and redoing some of my personal lessons to refresh my understanding of C# and I couldn't believe how rusty I am until I hit this issue...... using System; using System.Windows.Forms; …

Member Avatar for deceptikon
0
264
Member Avatar for Varunkrishna

I am learning C# there I came across two programs they both, get the users' input at the run time. The first program is using **int.Parse()** method to convert the string to int and the second program is using the **Convert.ToInt32()** to do the same task. Now my question is …

Member Avatar for kvprajapati
0
186
Member Avatar for Lp_baez

If the program is being run the "cin>>answerBoss;" runs just fine but right after that input the program skips the next input that reads "cin>>overTime;" I can't figure out what is causing this to happen.

Member Avatar for Nutster
0
253
Member Avatar for hackoman96

how to categrise pictures according to picture colour and texture using c++???

Member Avatar for mike_2000_17
0
170
Member Avatar for hackoman96
Member Avatar for shadyreal

I need help with the usage of Perfromance Monitor, but the code that I tried to go with did not work. I ended up with this Sysmon( System Monitor ) and added it in a Windows Form Application. I need to learn how to track performance. Does anyone know how …

Member Avatar for shadyreal
0
272
Member Avatar for raajsj

Hi all, i am developing web application in asp.net backend MS-Sql.<br/> i have to retrieve a particular table values for example table name "costomer" and its fields are "c_id,c_name,c_contactno" like that and when i retrieve this values, it should be bind the checkbox for UI. now i've code for generate …

Member Avatar for raajsj
0
2K
Member Avatar for hackoman96
Member Avatar for hackoman96
0
121
Member Avatar for th3k1d

I am currently learning c++ on my Mac started with eclipse and playing with Qt some recently. I am wanting to switch over to Linux. I was wondering what is the recommend Linux destro that c++ programmers are using. I will need to do some GUI programming. So I guess …

Member Avatar for mike_2000_17
0
244
Member Avatar for piczim

I have done a VERY simple currency converter which runs in the command prompt. is it possible to some how get this to work as a windows program. I would like to be able to save it and send it to my friends. I would also like to be able …

Member Avatar for rubberman
0
186
Member Avatar for khiemkim.xuan

Hi all! Are there any available C# projects that is used in VS2010-CS2012 that you guys know about? I need a really large project that has multiple assemblies for example. Thanks

Member Avatar for ddanbe
0
86
Member Avatar for fredw300

I am using C# to create a word document from a template (Word) that contains several bookmarks. My application generates different tables and paragraphs at specific bookmarks. However, there is a blank page created in the end of the document which I am not sure how to get rid of. …

Member Avatar for lolafuertes
0
274
Member Avatar for johang_80

Hello, I am currently trying to develop a window form application whose content is added dynamically. What I am trying to do here is to display a number of panels with different sources across the screen horizontally. I am getting the data from a DB and depending on the number …

Member Avatar for ddanbe
0
436
Member Avatar for funfullson

Hello dears. I need to play a music in my projects background. I did such below but it does not work. what is problem please? [CODE] class PlayMusic { private string cmd; private bool isOpen; [DllImport("winmm.dll")] private static extern long mciSendString(string strCommand,StringBuilder strReturn,int iReturnLength, IntPtr hwndCallback); public void Close() { …

Member Avatar for Sri Harsha
0
352
Member Avatar for Victoryy

I have created a setup in windows application using C#. In the Installer class I have overridden the Uninstall method as I wanted to perform some custom actions. But, while uninstallation I am getting error as **Unable to load one or more of the requested types. Retrieve the LoaderExceptions property …

Member Avatar for Ketsuekiame
0
360
Member Avatar for John Linux

In a past prac. exam for an algorithm course I'm doing is the challenge below, and their are no solutions but it seems like a really interesting one to solve. Can someone please help and point me in the right direction, I would like to try this on my own, …

Member Avatar for Sergio_1
0
513
Member Avatar for ppotter3

Hello! My name is Page, and I am still in the process of becoming a more seasoned programmer. I am trying to get a .txt file with first names in it to be sorted after I read the file and input it to a array from a function. Now I …

Member Avatar for jawad.ikram
0
3K
Member Avatar for abhinavashish

I an developing a Multilevel Marketting Website. I have enterd data in sql table (MemberDetail) columns(Member_Id, LeftChildMemberId, RightChildMemberId,TreePosition). Now in asp.net form I have to display Member_Id in form of Binary Tree. How can i do this?

Member Avatar for JorgeM
0
59
Member Avatar for VilePlecenta

This is strange, I looked it up and by default C# should pass parameters by value but I've always had them get passed by pointer. ie [ICODE] public class foo { public foo() { derp = 123456; } public int derp; } public static void dontcare(foo z) { z.derp = …

Member Avatar for zadkielmodelre
0
225
Member Avatar for serkan sendur
Member Avatar for mesbahuk

In java this is how a DerivedClass can implement it's BaseClass's constructor. public DerivedClass extends BaseClass { //some properties public DerivedClass(param) { super(param); } } I have learnt C-Sharp's *base()* does the similar thing, but when I replace *super(param)* with *base(param)*, it does not gives what I'm expecting. How can …

Member Avatar for Ketsuekiame
0
271
Member Avatar for shadyreal

Is it possible to have a auto-tracking event or something similar to track the database when it changes? For an example: If the database gets a new insert value from another application that I currently have: then My other application will notice it and fetch that data instead of getting …

Member Avatar for shadyreal
0
449
Member Avatar for mesbahuk

I have been working on a conversion project for last few days where I need to convert a Java library to C#. At one point I came to java's certain feature called [Exceptions Thrown by a Method](http://docs.oracle.com/javase/tutorial/essential/exceptions/declaring.html). Here is a little glimpse of it: public boolean isRequest() throws NullPointerException { …

Member Avatar for Ketsuekiame
0
306
Member Avatar for me.sapna
Member Avatar for lolo nice

Q1: and then breaks that number down to display the equivalent minutes and seconds. Have your program ONLY do the calculation if the user enters a number LESS than 50,000 hours.number of hours, If he enters 50,000 or more print an error message and quit.Write a C++ program that reads …

Member Avatar for Ancient Dragon
0
163
Member Avatar for mesbahuk

In the conversion process of a java to c# project, i have come to java's ***indexOf()*** function in ***string.java*** class, which takes in two integers (int ch, int fromIndex) and return some integer value for a char (i'm guessing its an ASCII value). I need to know if there is …

Member Avatar for mesbahuk
0
665
Member Avatar for Eyobed Paul

develop a c++ program for length conversions. The program should have a menu so that the user can select the type of length conversion by typing a value between 1 and 8 as follows: 1.centimeter to other units 2.Meter to other units 3.Kilo meter to other units 4.feet to other …

Member Avatar for rubberman
-1
130
Member Avatar for DevonParsons

Hi all, I'm following [this](http://msdn.microsoft.com/en-us/library/dd492149.aspx) tutorial and I'm encountering strange behaviour with the program. My finishLabel *ought* to be calling finishLabel_MouseEnter() when the mouse hovers over it, but it's calling wall_MouseEnter() instead - the location of the mouse resets and the congratulations box doesn't show up. In the properties/events box …

Member Avatar for DevonParsons
0
252
Member Avatar for vishalonne

How can Pass List to a constructor, I trying like this private void button1_Click(object sender, EventArgs e) { step2 st2 = new step2(list); } But what to write in constructor definition public step2() { InitializeComponent(); } Any suggestion is welcome

Member Avatar for itzcuinzin
0
461
Member Avatar for aplh_ucsc

I'm using visual studio 2010 and C# and this is the Implementation of a WPF button. IT takes two textbox values and insert them into a database table. i did create a service based database and the did configure it on app.config file. Table has two columns, product id(int) and …

Member Avatar for itzcuinzin
0
477
Member Avatar for arslan.maqsood1

Question#1Senior salesperson is paid RS.400 a wek, and a junior salesperson is pair RS.275 a week.Write a program that accepts as input a salesperson's status in the character vaiable status is's' or "S" the seniors person's salery should be displayed;if status is 'j' and 'J',the junior person's salery should be …

Member Avatar for rubberman
0
146
Member Avatar for Varunkrishna

I had created a dropdownlist box as follows. The contents of default.aspx is listed below <asp:DropDownList runat="server" ID="day" CssClass="dobselect"> <asp:ListItem Value="0" Text="DAY"></asp:ListItem> </asp:DropDownList> <asp:DropDownList runat="server" ID="month" CssClass="dobselect"> <asp:ListItem Value="0" Text="MONTH"></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="year" CssClass="dobselect" runat="server"> <asp:ListItem Value="0" Text="YEAR"></asp:ListItem> </asp:DropDownList> Then in the default.cs.aspx I had added the following code to …

Member Avatar for |-|x
0
2K
Member Avatar for Smeagel13

Take the following C structure: typedef struct dataPoint { tick * tickData; struct dataPoint * previousDataPoint; struct dataPoint * nextDataPoint; } dataPoint; Compiling on a 64-bit system with 8-byte words, this structure takes up 24 bytes (3 words) of memory. 24 % 8 = 0 ... so it is word …

Member Avatar for Smeagel13
0
296

The End.