37 Topics

Member Avatar for
Member Avatar for pallen

I'm jumping into Python/Django, and have been hitting some speed bumps. I'm a somewhat novice programmer. I know the basics, but haven't done anything more than create a PHP webform, and build very simple websites. I have a thousand questions about Django (most centering around Views and customizing the Admin, …

Member Avatar for JO_4
0
955
Member Avatar for Damian_2

Okay so I have a class `Student`, which takes a number and a vector as a parameter for the constructor. Everything works well, until I output the values of the vector for every instance. The problem is that the same vector is being shared with EVERY instance I create, but …

Member Avatar for rubberman
0
426
Member Avatar for rohit b k

Hello everyone, In my wpf application i have user conrtols like button,rectangle,image etc.. in one side of the window(whole window is divided into 2 canvas panels) i need to implement the functionality where, if i drag any user control and drop it in other area of the window, a new …

Member Avatar for MarkAMalo
0
276
Member Avatar for Patrick_3

Hello everyone, I am working on a VB project which implements a number of custom controls. So far I have had no issue with the controls I have been writing; until now. Every time I add the control to the form it appears like a normal control, however when I …

Member Avatar for tinstaafl
0
205
Member Avatar for vegaseat
Member Avatar for vegaseat
2
668
Member Avatar for nosfa

I get error #91 at line 114 (Object reference not set to an instance of an object). What do I need to do to correct that. (I get the error either pre-declaring X or as it is now) Thanks Dim iterAAA As Single = 1 54: 55: Dim arraydciP(3) As …

Member Avatar for Begginnerdev
0
363
Member Avatar for AppleR

So basically im creating this python adventure text game. And so far its good. But i have this problem with class instances(Is that the right term?) Say for example i have this class, class monster(object): def __init__(self,health,attack): self.damage = damage self.health = health So then I create a class object(again, …

Member Avatar for AppleR
0
339
Member Avatar for srivardhanms

Hi, Can anyone tell me how to create a class in C++ such that, the instance of that class cannot be created on stack? Am not able to figure out how to do it. Thank-you in advance, Sri

Member Avatar for srivardhanms
1
169
Member Avatar for UKnod

I have a warning that I can;t get rid of: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. I am pretty sure it is becasue I have not dimentioned the variable but how do you dimention an IO.memorystream. …

Member Avatar for UKnod
0
275
Member Avatar for sundog1

Good morning Guys, I've got this code currently running: private void button1_Click(object sender, EventArgs e) { SqlDataSourceEnumerator sdse = SqlDataSourceEnumerator.Instance; DataTable table = sdse.GetDataSources(); foreach (DataRow row in table.Rows) { instanceCombobox.Items.Add(row["ServerName"].ToString() + "\\" + row["InstanceName"].ToString()); } Which gives me the Instance and Name of the SQL Server over the Network. …

Member Avatar for TnTinMN
0
224
Member Avatar for alwayslearn

i have a problem when updating database. i need to update stock value in other table and count it and update to another table again. here the code : 'in every row on 'SalesDetailBindingSource' For Each SalesDetailData In SalesDetailBindingSource MsgBox("SalesDetailData : " & SalesDetailBindingSource.Count) 'dim use to take parameter Dim …

Member Avatar for lolafuertes
0
339
Member Avatar for vegaseat

This snippet shows you how to create a list of class instances. The class itself cannot be pickled, but the list of instances can. To use the pickled data file in another program, you have to recode the class in that program.

3
2K
Member Avatar for jaimin4829

Hi i m trying to connect with .mdf database file from vs2005. it gives error failed to create user instance .....i hv installed visual studio managemant express2005

Member Avatar for jaimin4829
0
109
Member Avatar for jg1405

Thanks for the support! I have been working on a program with 7 classes, one the main and one starts the program, and I have been troubleshooting for a few hours trying to see why for one of the output constructors I'm not getting the classes to update the output. …

Member Avatar for Taywin
0
189
Member Avatar for niyasc

Is there any method to deal with distributed deadlock when multiple instances are available for each resource type? I think method of wait-for graph and chase algorithm can be used only when single instance of each resource type is available.

Member Avatar for Taywin
0
107
Member Avatar for SANJAY26

Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick frmDisplayLockerInfo.Show() frmDisplayLockerInfo.TextBox2.ReadOnly = False frmDisplayLockerInfo.TextBox3.ReadOnly = False frmDisplayLockerInfo.TextBox4.ReadOnly = False frmDisplayLockerInfo.TextBox5.ReadOnly = False frmDisplayLockerInfo.TextBox6.ReadOnly = False frmDisplayLockerInfo.TextBox7.ReadOnly = False frmDisplayLockerInfo.TextBox8.ReadOnly = False frmDisplayLockerInfo.TextBox9.ReadOnly = False frmDisplayLockerInfo.TextBox10.ReadOnly = False frmDisplayLockerInfo.TextBox11.ReadOnly = False frmDisplayLockerInfo.TextBox12.ReadOnly = False frmDisplayLockerInfo.TextBox13.ReadOnly = False frmDisplayLockerInfo.TextBox15.ReadOnly …

Member Avatar for ChrisPadgham
0
216
Member Avatar for akshay.lahiry

Hi Guys I am trying to create a global object instance and am currently running into a segmentation fault while accessing a member variable. I have a capture.h file and a capture.cpp file //In capture.h struct ringinfo { // a simple struct }; class capture_manager{public: func1(); func2(); ringinfo ringinf ; …

Member Avatar for akshay.lahiry
0
3K
Member Avatar for kothaisaravan

Hi all, I got the error in design window "Object reference not set to an instance of an object." Instances of this error occurs at two cs files one.cs value = UIHelperConfig.GetSelectedPaymentTypeCode("CreditCard"); two.cs public static string GetSelectedPaymentTypeCode(string paymentType) { return ConfigurationManager.AppSettings.GetValues(paymentType)[0]; } How to make my design window viewable?? Any …

Member Avatar for kothaisaravan
0
216
Member Avatar for Perigee

Does anyone know how to resolve this other than a complete reboot? I'm restarting both my work desktop and personal laptop on an almost daily basis, which is irritating, to put it politely: **Couldn't register com.your.App with the bootstrap server. Error: unknown error code. This generally means that another instance …

0
167
Member Avatar for DavidKroukamp

Hey all, I have been busy building my own chess game and as of now im a bit stomped. Well you see i have an object Board, this object will be initiated and it will create a new frame with various panels one of them being the panel which holds …

Member Avatar for JamesCherrill
1
240
Member Avatar for TrueCoding

Hi Ive got an error message saying "Object reference not set to an instance of an object." It doesnt make sense to me and the troublshooting tips says to make a new keyword, but since Im new to C# I dont fully understand it. Heres the bit of code thats …

Member Avatar for TrueCoding
0
253
Member Avatar for anaisthitos2

Is there a way to call a visiblox chart that created with c# code in wpf? Let's say that i have created a chart like : [CODE]private Chart CreateNewChart(int num_chart, string chartName) { Chart newChart = new Chart(); newChart.Name = "Chart_"+num_chart; newChart.Title = chartName; newChart.Width = 600; newChart.Height = 120; …

0
94
Member Avatar for jimmy19

I am trying to create a walker that goes through directories. Here are the inputs and outputs which I have partly working. I am using a test directory but I would like this to be done on any directory which is leading to some problems. [CODE][IN]: print testdir #name of …

Member Avatar for TrustyTony
0
208
Member Avatar for marirs07

Hi all, How to find the base address of a structure ,just by knowing the name of the structure and a address of one of its members. Thanks in advance

Member Avatar for marirs07
0
3K
Member Avatar for Judas3213

I have three classes. I have a main app, a Draggable class, and a creator class. I want it so that when i click on one rectangle it produces the same exact dimensions as the shape i pressed. However, the problem is that when I use mousePressed, it seems that …

Member Avatar for NormR1
0
158
Member Avatar for naffan

Hi all, Wonder if someone could please lend a hand, I have a courses.txt file which is read into a Course String array I also have a program.txt (A list of 8 courses required to pass the program) There's a menu option to change the Program, however a condition of …

Member Avatar for JamesCherrill
0
206
Member Avatar for baby_c

Hey dear Friends... I'm developing a code for an assignment given that find a solution for a modified Dining philosophers problem.. For that problem I had to create four classes. [ICODE]Philosopher[/ICODE] , [ICODE]chopStick[/ICODE] , [ICODE]samllBowl [/ICODE] and [ICODE]bigBowl[/ICODE].. I implemented the class [ICODE]philosopher[/ICODE] as Runnable.. And the problem is this.. …

Member Avatar for baby_c
0
163
Member Avatar for olegb

Can someone help...this used to be so easy in C++ and VB6 :) I am dynamically creating multiple instances of a fairly simple class, tracking them via the Collections class in vb.net. I loop through the collection if I need to get to a particular instance to set some property, …

Member Avatar for crapulency
0
1K
Member Avatar for jackmaverick1

When I declare a class or an instance of the class, I get the error, error: redefinition of 'class player' then after, I get, error: previous definition of 'class player' by the way, I am using gc++. If you want to see the source, just ask. thanx, JT

Member Avatar for Fbody
0
8K
Member Avatar for dotnextnewb

I have created a UserControl Popup window and called that xaml file into another file. Imported the namespace. When I am trying to build this project an error at this below given code: [code=xaml] <Popup x:Name="POP" IsOpen="False" PlacementTarget="{Binding}" Placement="Center" AllowsTransparency="True"> <a:PopUpWindow x:Name="pp" /> </Popup> [/code] Error at [code=xaml] <a:PopUpWindow x:Name="pp" …

Member Avatar for alc6379
0
155

The End.