C# - Building A Local Cube?
Apr 29, 2009
I need to build a local .cub file for my Excel-using clients.
I have scrounged together some VB code but it fails :
ConnLocation = "LOCATION=C: est.cub;"
ConnDSN = "SOURCE_DSN=DSN=TEST;UID=test;PWD=pass;"
ConnCreateCube = _
"CREATECUBE=CREATE CUBE [TestCube] (" & _
"DIMENSION [account_code]);"
[Code]...
I have trimmed this down to the above code and am getting a mysterious OLE DB error: OLE DB or ODBC error." when I try to run it.
View 1 Replies
ADVERTISEMENT
Mar 10, 2011
Attached is a file that creates a 3D cube, I did not make this but found it here at this site.Playing around with it I found out how to, on pressing of any key change the distance of the camera, thus changing the shade of the cube.So if you held a key down it got darker and darker.I want this to happen, but on a timer. So i created a timer, set the interval to 1 and did the same exact code. Set the timer to true, and nothing happens. Ever. I tried doing messagebox.show to show me a message every tick, and that didn't work either. So I went and broke the timer class?
[Code]...
Now i made a new application file, because I use timers all the time and it works. I copy pasted the code, and added the directx stuff, and it ..breaks my timer to do nothing at all ever.. Even if it is unrelated to my cube.
View 13 Replies
Apr 23, 2009
Math.Sqrt is used to find square root but if I want to find cube root or 4 or 5, how I can do?
View 10 Replies
Sep 8, 2009
I'm making this rubik's cube program, and I wanted to make a 3d animation of the cube doing the moves, and I figured the best option for that was using the XNA extension. However, doing that brings up a problem. I want to have lots of different options in the Mdi parent form that will interact with the moving 3d cube. The problem with this and using XNA is I can't use both the normal form and the XNA game in the same project. How would I go about having the 2 different projects interact? Just like a txt file or something?
View 1 Replies
Jun 3, 2010
how to create a simple controllable 3d cube? I think the code should go in the form.paint area, but i dont know what exactly to put..
View 2 Replies
Feb 27, 2010
Much to my disappointment I recently discovered that VB can not calculate the cube root (or any odd root) of a negative number even though it is a real answer.For instance if you tryMsgBox((-1)^(1/3))You should get -1 because -1*-1*-1 = -1. But no, VB will return NaN, not a number.Anyways, my problem is that I'm making a graph program and the user needs to be allowed to enter any formula they want and have it evaluated so the program can graph it. But if the user enters anything with x^(1/3) or like it, it will fail.So I was wondering if anyone knows of a way around this problem, such as an extension or patch or something that will fix the issue in Visual Basic. I haven't tried VB 2010 but does anyone know if they have they fixed it yet in that version?
View 15 Replies
Mar 20, 2009
I already have this code in my class file:
Public Class Cube
Private sngLenght, sngWidth, sngDepth As Single
Public Property Lenght() As Single
[Code].....
View 11 Replies
Sep 15, 2010
Does anyone know how this can be done? The problem is that when you run the script to add a domain user to the local group as a local user you have no permissions to query the domain. Is there a way to pass a user name and password when doing this? [code]...
View 3 Replies
Sep 23, 2011
For those of you interestested in mathematics you can find a root of a number in two different ways. Lets say you want to find the 5th root of 27.
[Code]...
View 2 Replies
Aug 31, 2011
I have a search engine that will use a webservice to search through my database to find 3 specific things. I don't even know if it will work like this, but I have a dropdown list on my main page to select Product, Feature, Description. From what the user selects, the webservice should then go to an if statement to use the correct SELECT statement and find results for the search.
Will someone help me figure out how to fix what I've written to make it work? Please don't be too critical, I don't have a lot of experience. I have also been researching SQL Injection because I have a lot of code that is vulnerable so keep that in mind when you look at my code.
I can't get the blue squiggly lines to go away that are underneath the DropdownList1.Value instances on the WebService page.
WebService:
<WebMethod()> _
Public Function GetCompletionList(ByVal prefixText As String, ByVal count As Integer) As String()
Dim Feature As String = DropDownList1.Value
Dim Description As String = DropDownList1.Value
Dim Product As String = DropDownList1.Value
[CODE]..........................
Default.aspx page - Here I need the dropdownlist to tie to the database somehow.
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
[CODE]........................
View 2 Replies
Dec 12, 2009
I was looking at making a program which can then build other seperate .exes, is this possible? For example the user types their mail username/password into my program then this builds a seperate one which just connects to their mail with their username/password.
View 2 Replies
Jun 21, 2010
I am doing a project on the CRM application which sending and receiving sms using the vb.net language. I am no where to conclusions of my project because I could not build the application. I have found many examples but the problem some of the examples some uses the sms gateway or the AT commands. I could not differentiate which one to use? I have a dateline to finish this project of mine.Most of the example does not look like a CRM application.
View 2 Replies
Jun 16, 2009
I have a little bit of trouble figuring out why I am getting these error messages. Here is the error messages and then the code will follow behind it.The code is taken directly out of the book "ASP.NET 2.0 Everyday Applications for DUMMIES". [code]
View 6 Replies
May 11, 2010
Wanting to know the best method to use if building a small app that will intereact with the web using usernames and passwords, captcha's etc.....
I'm thinking Window's Form but can you use captcha's in a windows form?
View 2 Replies
Apr 28, 2011
relatively new at using Visual Basic, and I'm trying to make a decathlon calculator. My question is how do I make a blank array, and after each person is done calculating their decathlon score it adds the persons name, school,(which are both in text boxes) and score(which is calculated into a textbox) to the blank array
View 4 Replies
Sep 3, 2009
I am trying to write simple database application and try to understand ADO.net as well.say I have 2 table
1. table emp with the following field (empId, empName, empPhone, salary, deptId)
2. table dept with the following field (deptId, deptName, deptLocation, deptManager)
emp table is link to dept table via deptId.so I try to build a form with 2 data grids the top will be dept data grid and below it is emp data grid.I try to do this with out using the wizard so I know the flow and understand how to link together step by step.
in the form load section:
dim conn as new system.data.sqlclient.sqlconnection(connectionString)
dim daEmp as system.data.sqlclient.sqldataadapter
dim daDept as system.data.sqlclient.sqldataadapter
[code]....
I am kind of stuck on what to do next, I think the next step is to creat dataview from my understanding before mapping it to the datagrid, but on data grid documentation it say it can only filter datarow, it can't filter data column on the dataview.
I would like to be able to display deptName, deptLocation, no the whole column on the table to data grid, and when user select a record from dept datagrid then the employee info (empname, empphone, empsalary) is display on the second grid (again not the whole emp column table).
the user can update, add or delete emp record from employee data grid by clicing on update button, on update button callback routine I need to put something like.
daEmp.update()
from what my understanding then I need to create update, insert and delete routine and attach it to daEmp so the data grid know how to sync with sql server, so when the user say add new record since the data grid doesn't have all the field display, i.e deptId column is not on data grid, how the table know what the dept id would be? I'd like to learn without the wizard 1st since once I know how everything is link then it is easier to debug since the wizard create lots of file and it's everywhere which make it very hard to understand what is happening for someone new to vb & ado.
View 6 Replies
Sep 21, 2009
Okay Is there a way In vb.net to create an exe from a predefined script, for example rather than writting the methods and subs into the codedom code could I just have a textbox that I could put a script into and then have that built? (obviously omitting button presses and things.)
Im not worrying about ui's at the moment just and exe (hello world style )
Are there any tutorials for this?
Code: None
View 2 Replies
Aug 21, 2011
Possible Duplicate:Building F# library to be used in C#
Let's say I have the following function.
let rec fib n =
match n with
[code].....
View 1 Replies
Mar 26, 2011
building webpages is it possible with vb
View 2 Replies
Oct 10, 2010
While I'm trying to build a solution after I've changed a little in its code it gave me an error and even when I've removed the code the same error appears.
"Unable to find manifest signing certificate in the certificate store." (That is the Error and it either stop building or run last successful build.)
View 2 Replies
Aug 16, 2009
I'm interested in building a GUI CAD software in VB.NET, but I don't know from where to begin. I've looked in Audesks online help but there are no instructions, neither tutorials on the net for building something like this. When I'm saying GUI, I mean a work area, where you can use blocks from autocad and build a plan/circuit/PCB or other stuff like this.I'll be glad to see is this possible, and what kind of components can be used.
View 3 Replies
Oct 15, 2011
I have a problem with building a project. When I build a project and when I create .exe file, I cannot run it on other computers.There is an error: "The application failed to initialize properly (0x0000135). Click OK to terminate the application.".ca i have any chance to solve this error without installing framework 3.5
View 2 Replies
Oct 26, 2009
I am building a module using linq to SQL and I am running into some problems. I have been following Michal Washington's tutorial on [URL]. The problem is that VB does not recognize my Complaint Class when I try to create new Complaint object. why I am unable to Dim a Complaint object? Here is my code:
[Code]...
View 2 Replies
Jul 20, 2009
I have a problem with building a project. When I build a project and when I create .exe file, I cannot run it on other computers. There is an error: "The application failed to initialize properly (0x0000135). Click OK to terminate the application.". When I install .NET framework on the computer, than there is no this error. Is there any chance to create a file that will run on the other computers without installing the .NET framework?
View 8 Replies
Jan 4, 2011
I am working on a program. I created a database and used it to create a dataGridView in my program. I clicked the table adapter for the program and tried to create a new query. When I did this, I got the following error messages...Error message-the new command text returns data with schema different from schema of the main query check your query's command text if this is not desired Schema returned by the new query differs from the base query I cannot create a query for the database. What is a base query and what can I do to fix this?
View 7 Replies
Dec 13, 2011
I am successfully building an array list as shown below:
Dim obj1 As paperCutObj = New paperCutObj
obj1.Model = readLine(0)
obj1.IPaddress = readLine(1)
[code]....
View 5 Replies
May 14, 2010
I am building a autocomplete on my textbox. Really simple and it works really fine. But I like to do the next thing. When there is a match in the list and I will click on it. then i like to have a function.
For example
Private Sub ListItems_click(ByVal sender As Object, ByVal e As System.EventArgs)
MsgBox("test")
End Sub
How can i make this sub??
View 6 Replies
Oct 30, 2011
I am trying to learn building an Extender Provider.I use VB 2008 express.I found an example in a book which adds an "ExtraTag" property to Labels and TextBoxes:
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
[code]....
View 3 Replies
Jan 2, 2012
I have a VB app that uses a sqlServerCE database. Everything works quite fine on my computer.
When I try to install it on other computers I run into problems. The message "Unable to load the native components of SQL Server Compact corresponding to the ADO.net provider of version 8080"
I am testing on a Win XP virtual machine.
My first attempt was to use InstallShield LE to create the installer. I defined ServerCE as a prerequisite and when I check in add/remove programs it exists, but I still get the error.
Then I tried building the installer with the Microsoft installer. This adds the dll to the program directory automatically, but I still get the error.
I read the KB article referenced (874247) and recompiled the app as an x86 application only, and rebuilding the installer, but have the same problem.
View 4 Replies
Jan 7, 2011
I have an application that I built in VB.Net 2008 on Windows XP for Any CPU that I would like to run on Windows 7 64bit. Is this possible from Windows XP or do I need to compile and develope on Windows 7 64bit for it to work?
View 10 Replies