Maverickcoder's Q&A profile
.NET Development IPX under C#
Hello, I have to write an a C' application supporting the IPX protocol - to get a socket I would use _server = new Socket ( AddressFamily .Ipx, SocketType .Dgram, ProtocolType .Ipx); but I'm suckt with the Bind function - how I'm setting the EndPoint for a Networkcard. I'm onliy find the IpEndPoint and so on but nothing for IPX - may someone could help me This is what happens on the bind An unhandled exception of type 'System.NotImplementedException' occurred in system.dll Additional information: This method is not implemented by this class. ...Show All
Visual Studio Express Editions Out puting array to text box
I am trying to out put my array to a text box. I have tried textbox1->Text = number[x]; x++; The problem is i keep getting this error error C2664: 'void System::Windows::Forms::Control::Text::set(System::String ^)' : cannot convert parameter 1 from 'int' to 'System::String ^' No user-defined-conversion operator available, or No standard conversion exists from the boxed form of the arithmetic type to the target type That is only outputing the last char or int. so if the array was like Array[0]=h and Array[1]=i it only o ...Show All
.NET Development Connection pool size issue
Hi, I have a question about ADO.Net's way of handling connections. My server app uses ADO.Net to connect to SQL Server to server clients' calls. Some times I get error message that says that I may run out of connections in the pool and I should consider exband the size of the connection pool (not the exact words). I am a little confused by this error because, to my knowlege, the connection pooling is by defualt set to a certain size. If all the connections in the pool are taken and when a new connection is requested, ADO will automaticly increase the pool size, isn't it If so, why do I get the error message If not, what should I do to avo ...Show All
Visual Studio Remove temp
Is there any automatic procedure to remove temp directory fromm vss databases I have the same request. We have two sourcesafe databases which support about 30 users. Currently there are about 1.2 GB of files in the temp directories. The VSS docs say you should clean out the temp directories when no one is logged on. But that's a rare occurrence for us, and it would be nice if there was a way of having the temp files deleted periodically. It would be even nicer if VSS cleaned up after itself, but that's probably not going to happen. alb52 ...Show All
Visual Studio Tools for Office Avoiding security alert in Outlook while accessing Contacts in VSTO 2005
I am trying to access Items programmatically within a VSTO 2005. When I try to access the 'magic' properties such as email1address, I get the security warning within Outlook. I do not want to go back to redemption - that's why I am using VSTO. How do I avoid the security warnings when doing something like the following: private void Form1_Load(object sender, EventArgs e) { LoadContacts(); } private void LoadContacts() { Outlook.NameSpace outlookNameSpace = Globals.ThisApplication.GetNamespace("MAPI"); Outlook.MAPIFolder contactsFolder = outlookNameSpace.GetDefaultFolder(Outlook.OlDefaultF ...Show All
SQL Server Pivot misunderstood ??
Hello, i've been looking for some samples on the pivot function, but somewhere i'm making a mistake and can't find where. This is my statement SELECT MOV_UI , [1] AS SUNDAY , [2] AS MONDAY , [3] AS THUESDAY , [4] AS WEDNESDAY , [5] AS THURSDAY , AS FRIDAY , [7] AS SATURDAY FROM XX . UGENT_DAILYSALES_OF_MOVIE_FIRST_WEEK PIVOT ( SUM ( TICKETS ) FOR DAYOFWEEK IN ( [1] , [2] , [3] , [4] , [5] , , [7] )) AS PVT ORDER BY MOV_UI I though to receive a line per mov_ui with the 7 sums, but .. i'm getting a line for each day .... MOV_UI SUNDAY MONDAY THUESDAY WEDNESDAY THURSDA ...Show All
Visual C++ VS2005 ColeDatetime::Format("%Y-%m-%d") generates error when date is prior to 1899-12-30
...though it is stated that ColeDatetime supports years from 100 to 9999. VS2003 has no such problem. The cause is in the CRT _expandtime function (strftime.c) which has following code. What shall I do to get rid of this error static BOOL __cdecl _expandtime (_locale_t plocinfo, char specifier, const struct tm *timeptr, char **string,size_t *left, struct __lc_time_data *lc_time, unsigned alternate_form){ /* */ case ( 'Y' ): /* year w/ century */ { _VALIDATE_RETURN( ( timeptr->tm_year >=0 ), EINVAL, FALSE) temp = (((timeptr->tm_year/100)+19)*100) +(timeptr->tm_year%100); /* pass alternate_form as the no lead ...Show All
SQL Server SQL ALTER COLUMN causes a Possible schema corruption.
Hi all, I’m trying to run this SQL statement in 2005 express; ‘ALTER TABLE test ALTER COLUMN testfield varchar ( 5600 ) NULL’ Testfield exists in database as a varchar(8000). Express bombs with; Msg 211, Level 23, State 7, Line 1 Possible schema corruption. Run DBCC CHECKCATALOG. Msg 0, Level 20, State 0, Line 0 A severe error occurred on the current command. The results, if any, should be discarded. Thanks in advance. Tristan Could you run the commands DBCC CHECKCATALOG on the database and DBCC CHECKTABLE on the table and rep ...Show All
Windows Forms how to make textbox trigger on 'enter' key?
how do i make a textbox to cause an event when the 'enter' key is pressed do i have to just catch it in the 'KeyUp' evnet or is there a better way thanks! KeyDown/KeyUp and KeyPress will all fire on the TextBox if it has focus when the user presses enter (or any key). If you want a multiline TextBox to insert a carr ...Show All
Visual Basic publishing
how do you publish a program so it works on a computer without the .NET framework(a vb.net app) how do you publish a program so it works on a computer without the .NET framework(a vb.net app) You write it in VB6. More seriously, I would like to add the question of whether VB.NET is planned for other platforms. There was talk that the new universal NET languages would allow such migration. The system seems to have fallen back on NET only. Any plans for VB for Macintosh, now that they have Intel processors ...Show All
Smart Device Development ERROR_INVALID_PARAMETER error in CeSeekDatabaseEx.Thanks!
Hi , I create a CEDB successfully by calling functions CeMountDBVol and CeOpenDatabaseEx. After that i wrote a record(new CEPROPVAL[14]) into this database,and I can read this record out. Then I want to seek the database to obtain the record by the first two CEPROPVAL structure of the record.The ERROR_INVALID_PARAMETER occurred.Just as following: CEPROPVAL record[2]; ZeroMemory(record, 2*sizeof(CEPROPVAL)); record[0].propid = CEVT_UI2; record[0].val.uiVal = m_year; record[1].propid = CEVT_UI2; record[1].val.uiVal = m_month; DWORD ...Show All
SQL Server Oracle support and Report Builder
Can anyone confirm whether Oracle support for Report Builder will be in SSRS 2005/SP1 I think a long time (6-7 months) ago this was kicked around as a possibility, but as far as I know there are currently no plans to include direct access to Oracle via Report Builder in SP1. You could do this by using a UDM/Cube in SSAS (which points to Oracle) or linking Oracle tables into SQL, though... ...Show All
Visual Studio Express Editions Shortcut Problem (VB.NET Express Beta 2)
Press Ctrl+Alt+F4 (The shortcut for Dynamic Help) will shutdown the machine. It happens to my laptop (TOSIBA TE2300, WinXP SP2). Does this happen to anyone else Regards. Jiao - are you still experiencing this problem I have never heard of this problem before. If you are still seeing this, you can go to Tools > Options > Keyboard, hit the Ctrl+Alt+F4 buttons at the same time inside the "Press shortcut keys" box. You will then be able to see which command this shortcut key is bound to inside "Shortcut currently used by:" field. Type in that command inside the "Show commands containing" box and then ...Show All
Visual C# cannot toggle between two forms
It is a continuation of my previous thread on switching between forms. Special thanks to Craig for the code. I still have a way to go. Now I am trying to toggle between two forms of one application (WindowsApplication2). It starts out as Form1. By clicking on a linkLabel control I close Form1 and start Form2. The Form1 becomes invisible. Then I want to go back to Form1 and perhaps a few times back and forth. The following code gives me a compile time error and I do not understand how to handle it. In Form2 I am doing the switch with a button control. public void Button1_Clicked( object sender, EventArgs e) { // make Form2 invisibl ...Show All
Visual C# Visual C# beta 1 crashing - help please
Hello everyone! Im a newcomer to .NET and C# and recently (about a month back) I had started using visual C# express edition 2005 beta . It worked just fine uptil about a couple of days ago. Two days ago, I started vc# express and chose 'New Windows Application' under File->New->Project. (1)Now, earlier this would have meant that the design view would have showed up. However,now vc# just opens a new project,displays the property window for the new project's form and does NOT display the form at all . If I choose form1->designer view , then vc# crashes with the following message- "An error report is being collected.This could take s ...Show All
