Topics
-
- 0 replies
- 1.4k views
When trying to set the 'max server memory' of a database I use the stored procedure (SP_COFIGURE) as follows: _bstr_t bstrCommandText = OLESTR("SP_CONFIGURE 'max server memory',"); bstrCommandText = bstrCommandText + bstrServerMemory; // where bstrServerMemory = {"128" (1)} // looks like = {"SP_CONFIGURE 'max server memory',128" (1)} iCmd->CommandText = bstrCommandText; iCmd->Execute(NULL, NULL, adCmdText); // This line generate an error iCmd->CommandText = L"RECONFIGURE"; iCmd->Execute(NULL, NULL, adCmdText); However that code generates an except (access violation) on the line that has the comme…
Last reply by Shaitan00, -
- 1 reply
- 761 views
I have a database that has all zip codes in the US plus the lat and long of each zip code. I am trying to come with a way to get all zip codes within a certain distance of a zip code. I have figured the best way is to get a sqare around the origin (zip code) and then if then if the lat or long falls outside of this box, then reject it and if it falls within, then get it. I am having a problem though trying to establish a latitude and longitude from the starting point based on miles. If I could do this, then I could pass these two the database and retrieve all the zip codes in the area. Does anyone have an idea of how to go about getting latitudes and longitudes of …
Last reply by robplatt, -
-
- Leaders
- 5 replies
- 647 views
Hi, Is it worth reading "Sams: Teach Yourself Visual C++ 6 In 21 Days" book if i'm gonna use Visual C++ 2005 Express Edition? Did VC++ 2005 changed a lot from VC++ 6?
Last reply by arukomp, -
-
- 3 replies
- 1.6k views
Hi Guys, I need some example code or guidance here. Below is the description of my problem. ------------------------------------- I have a web service with couples of web methods, example is like 1) getNames 2) getLectures 3) getClasses, etc.. So in each of this method, there is a statement which connects to database, meaning whenever user calls "getNames", it connects to db, then retrives the data, release the connection. Then if user calls "getLecturers" again, it connects to db, then retrieves the data again, and releases the connection again. Im trying to eliminate the need of connecting to db for several times each time a web method is called I …
Last reply by Gill Bates, -
-
- Administrators
- Leaders
- 6 replies
- 1.2k views
Hello everyone, For my first post (woot!) I need a bit of input in a strange problem I'm having. Ok here's the story, I'm writting a program who's interface is a picture animation. So at load time I store the frames of said animation on an array of a structure Frame. Frame contains a single bitmap (a frame, lol) and a region corresponding to that image. Once the program finishes loading that, it starts a thread that continuously loops thru all the frames, updating the form's background image and its region (has a Thread.Sleep(20), before starting animation again). works great, smooth animation. Here's the thing, when I check the Performance tab under Task M…
Last reply by FunUsePro, -
-
-
- Leaders
- 4 replies
- 1.2k views
I normally do... but at work I realized that the interface is kinda lacking in the search capabilities I want and takes longer to load than a Google Query. Google gets me what I want faster... and without taking up so much hard drive space. Plus it's the updated MSDN without me having to install updates onto my computer. I say to myself "What if I don't have a connection to the internet... and happen to really need the MSDN? Not bloody likely I'm thinking. So I'm giving it a pass this time.
Last reply by mskeel, -
-
- 0 replies
- 897 views
I have created a few styles in a style sheet for required form fields. Just the basic font-family, color: red kind of stuff. The styles show up in the IDE in design mode when looking at the page. However, if I run the web site in the IDE, the styles do not apply to the controls! If I open this (local IIS) web page with Firefox, the styles are applied. Only seems IE doesn't want to do what VS.NET 2005 recognizes ... Anyone have any ideas? I can provide code if this is a new one for the community.
Last reply by HardCode, -
- 3 replies
- 1.2k views
Hi all, I wonder if I can do a connection to an SQL server DB from my PocketPC using the Compact Framework. Someone can tell me if it is possible and how? I tryed to compile a simple app from a dos-shell (csc.exe) but if I use the /nostdlib option, it cannot find the SqlClient namespace :( i.e.: %WINDIR%\microsoft.net\framework\v1.1.4322\csc.exe /t:exe /noconfig /nostdlib /r:%palm_sdk%\mscorlib.dll /r:%palm_sdk%\system.dll /r:%palm_sdk%\system.data.dll /r:%palm_sdk%\system.data.common.dll /r:%palm_sdk%\system.data.sqlclient.dll /r:%palm_sdk%\system.xml.dll /r:%palm_sdk%\system.drawing.dll /r:%palm_sdk%\system.windows.forms.dll /out:%palm_out% *.cs why?
Last reply by robplatt, -
- 0 replies
- 1.8k views
Hi, I have a UDP server receiving about 10 000 bytes per second. Wav sound format is (8000hz, 16bits, 1 channel). Using DirectSound I would like to create a player to play this data. Sometime, is it possible that server doesn't receive data for a couple a seconde and the player must no crash for that reason. However, I did not found any good exemple to help me. Thank
Last reply by Erakis, -
- 1 reply
- 1.3k views
Hi, I developed an MDI Environment with several MDIchilds and i would like to prevent the same MDIClient open twice. User clicks once and opens 1 mdi client window, user clicks again and if form exists calls BringToFront() method else if not exists, recreate 1 new mdi client wnd again. Until here all rocks, but in the second time e recreate (because doesn't exists anymore) a new mdi client window, an error ocurres, because i have a method that uses BeginInvoke((MethodInvoker) delegate{stuff to change})); inside. The error is about the window handle... How can i prvent this to error, but saving my need of show a single form? Thanks in advance
Last reply by teixeira, -
- 6 replies
- 1.7k views
I have a datagrid that allows editing. If a certain group of users accesses the page, however, I would like the page set up to only edit one field and not all of the edit fields? The admin user would have the ability to edit all fields in the grid. Can this be done through ItemDataBound? If so, does anyone have an example of how to do it? Hope this makes sense.
Last reply by lorena, -
- 2 replies
- 1.5k views
Greetings, My college and I are planning to create a system that reads input from the mic. The input being a person playing on a guitar. We want to analyse the input in real-time mode(that is we want to immediately know which note the user played). We want to know the frequency of the played note. We have no clue on how to read this input. And would like some help in this manner please. P.S. The coding language doesnt matter as long as it is .NET supported language. Thank you
Last reply by MrPaul, -
-
- Administrators
- 4 replies
- 1.1k views
Hi all I am trying to use cursors in a database procedure, here is the cursor code that I am using: DECLARE Manager_Cursor CURSOR FOR SELECT Manager_ID FROM Managers WHERE Org_ID = @OrgID OPEN Manager_Cursor; FETCH NEXT FROM Manager_Cursor; WHILE @@FETCH_STATUS = 0 BEGIN DELETE FROM Groups_Reference WHERE Manager_ID = CURRENT OF Manager_Cursor FETCH NEXT FROM Manager_Cursor; END CLOSE Manager_Cursor; DEALLOCATE Manager_Cursor; However I am getting the following error: Incorrect syntax near the keyword 'current' Any suggestions. Mike55
Last reply by mike55, -
-
- 1 reply
- 1.4k views
Is it possible to show extra/new columns in a gridview after user has pressed Edit? Lets say that when user goes to a page the GridView there shows two columns, one for first name and one for last name. When user clicks Edit he then can edit first name, last name AND phone number. If I set the TemplateField to "Visible = False" then there is no way to set Visible to True in the code behind since I cannot give the TemplateField an ID!? And if I set the Textbox to "Visible = False" then it shows a column anyway (before I press Edit). Of course it is empty but still it shows an empty column which I don't want! Anyone know how to do this??
Last reply by APaule, -
-
- Administrators
- 5 replies
- 2.7k views
Seems funny, but Typed TableAdapters inherit from the Component Class. But, they offer the functionalty for you to choose another Base Class that also inherits from Component. So, knowing there will always be an Update Method in a Typed TableAdapter, is there a way to call it from the Base Class?
Last reply by Denaes, -
-
-
- Administrators
- Leaders
- 3 replies
- 832 views
I have this code: using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; using System.Diagnostics; namespace CSSServer.ServerBrowser { class Source : ServerBrowserMain { private byte region; private string filter; public override event ServerFound ServerAdded; public override event EndOfList EndOfListReached; public override void GetServers(string last_ip, byte region, string filter) { if (last_ip.Length == 0) { return; } this.region = region; this.filter = filter; string query = "1" + (char)region + last_ip + filter; try { this.SendQuery(query); } ca…
Last reply by snarfblam, -
-
- 0 replies
- 1.1k views
As the subject says, I need to learn ASP.NET 2.0. However, I don't even know a thing about web development in general. (My background is VB6 and VB.NET, but zero about web development.) The reason is I'm acquiring a project from another developer who is about 75% done. I need to absorb it and finish it out. (He has it programmed in ASP.NET 2.0 and AJAX.) How would you recommend I proceed? Certain books? Websites? Other? Thanks.
Last reply by JDYoder, -
- 0 replies
- 2.3k views
I am wanting to get and change the display date in the datetimepicker control located in a 3rd party application that runs in the background and thus not in focus. I found that DTM_GetSystemTime and DTM_SetSystemTime can do this but I have been unable to get it to work. I get an error message stating: "A call to PInvoke function 'DateTimePicker!DateTimePicker.Form1::SendMessage' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature." I've noticed that changing the "Byval lParam As SY…
Last reply by Sweetve13, -
- 1 reply
- 2.4k views
Weird problem. I'm trying to write a function to determine what Browser and version clients are using. Using HttpBrowserCapabilities ...pseudo code Dim bc As HttpBrowserCapabilities bc = Request.Browser Response.Write(bc.Browser & " " bc.Version) Works fine on IE. Show "IE 6" or "IE 5.5"...etc. Even works on Netscape 6.2. Shows "Netscape 6.2" Here's the Problem. On versions of Netscape 7 or greater, it shows the version as 5.0 "Netscape 5.0" I've tested it with 3 newer version. 7.2, 8.0 and 8.1 They all show "5.0" Even if I try to use the .Majorversion + .Minorversion. Same thing. When I pull the server vars for HTTP_USER_AGENT for each …
Last reply by HJB417, -
- 0 replies
- 873 views
Correct me if I am wrong dbtype Byte = 0 is by convention false dbtype Byte = 1 is by convention true
Last reply by TheWizardofInt,
-
Who's Online 0 Members, 0 Anonymous, 44 Guests (See full list)
- There are no registered users currently online