MarcoViY's Q&A profile
Visual Studio Tools for Office Add-In problem
I have developed an add-in for Outlook 2003 with VSTO. I have deployed it on my laptop and it works fine with the exchange server at my company. I have also installed it at my customer, on their network on a computer with a new account in my name. The Add-in works fine and I can read and create new items. I use Cached Exchange Mode. When the Add-In is installed on the sales force's computers the Add-in loads. The problem is that it can't read any items. I still can create new items. If I turn off the Cached Exchange Mode I can read the items but that causes other problems and is not an alternative for my client. They use the same exchange server as I do when the Add-In works using my account on the customer network. Possible causes t ...Show All
SQL Server Can't make a connection to SQL Express as Server does not exist or access denied...
Hi I have recently downloaded SQL Server Express which I have installed using Windows authentication mode. I cannot seem to be able to make a connection to SQL Server from Dreamweaver or Microsoft Visual Web Developer as I am getting an error Server does not exist or access is denied.... I am relatively new to all of this, so would appreciate any advice.... When I installed SQL Server Express I chose Windows Authentication. When I fire up SQL Express and view Security option - the installation program has set up an sa login with a random password. I did not set this password, but think this might be a reason why I can't connect. To rectify the problem I tried creating a new user in SQL Server Express with a password that I specifi ...Show All
Smart Device Development How to use database for pocket pc application
Hi I have a need to work on pocket pc application. Scenario: In general user will take database backup from database server to local system. User perform some changes to his local database based on his requirement. Again user connects to database server and click on update, local database should update to server database by informing each record status to the user. ex: record 1 updated / call closed do you want to update Here local database is going to be Pocket pc database and server database is on SQLDatabase. Can any one suggest best way to implement this feature in Windows Pocket pc, c#. I would appreciate your reply. Thanks, I have need to work in pocket pc application. Scenario: ...Show All
.NET Development Problem Binding to a PK GUID Column
I have a WIN form that was working just fine when my primary keys (about 10 tables in the project) were Integer data types. I converted the PK fields to GUIDs and updated the DataSet and resulting code. I created new fields and propagated the new GUID data properly in the tables. I have a form with a list (combo box) that displays an ordered set of records, when a user clicks on one of the records, the form displays detail data using binding. This form was working fine. Now that I have converted to a GUID PK, I am getting an error when clicking on a record to display. The error message is as follows: "Column 'NoteID' is constrained to be unique. Value ..... is already present. " NoteID is the field I changed to be a ...Show All
Visual Studio Express Editions Maximize Speed Conflicts with std::string
Using vc++2005 Express, I have encountered this problem: I cannot optimize for speed with /0D when I call std::string::c_str(). This program will cause the error #include <string> using namespace std; int main() { string s = "bob"; const char *t = s.c_str(); return 0; } The error: main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char const `private: static char const * __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Nullstr(void)'::`2'::_C" ( __imp_ _C@ 1 _Nullstr@ $basic_string@DU $char_traits@D@std@@V $allocator@D@2@@std@@CAPBDXZ@4DB ) main.obj : error LNK2001: unresolve ...Show All
Visual Basic VBA or .NET?
Hi, I'm planning on making an add-in for Powerpoint 2003, a customized toolbar that would extend the functionality of Powerpoint (custom color palette, dynamically creating slides, etc.). Would you recommend using VBA or .NET (VSTO and Visual Studio 2005) Thanks, Pete It really depends on the goal and scope of your tool. If it is accessing things like Web Services or other features that .NET is built for and VBA is not, then .NET would be your best choice. If it's sticking entirely to Powerpoint manipulation, VBA would be better. If it's a combination, perhaps a combination of techniques would work best. As for Jonathan West's reasons, I agree with them except that I would shorten his third reason by ...Show All
Windows Forms Showing Data in a DataGridView from SQL?
I have been trying, without luck, to show the data from my SQL table in my DataGridView. The SQL statements seem to be fine, and I have followed the MSDN tutorial, but I can't get it to show up. I have tried .refresh() on both the Form and DataGridView. I am sure it is something simple, but can someone help Here is my code: private void Form3_Load(object sender, EventArgs e) { dgvSearchResults.DataSource = karateSchoolDataSetBindingSource; } private void btnSearch_Click(object sender, EventArgs e) { try { String connectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=C:\\KarateSchool.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; String selectComm ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Data alignment on GPU for vertex data
If the data alignment (to float4) is critical for constant buffers, why this problem seems not to appear for classical vertex buffers Did the driver "convert" the vertex buffer (with CPU alignment) to GPU alignment before using it What is the possible impact on the vertex structure size Are vertex structures are also aligned to float4 on a GPU Another way to formulate the same question is: if I fill an array of vertex structure on the CPU (to be transmited as D3D10_SUBRESOURCE_DATA on creation), is the size of this array the same on the GPU, or will it depend from on the data organization in the vertex structure In the later case, please describe the general rules for data organization to follow in vertex data structures ...Show All
SQL Server Linked server from SQL 2005 64-bit to SQL 7
I've experienced the problem with creating a linked server from SQL 2005 64-bit to SQL 2000. "The stored procedure required to complete this operation could not be found on the server. Please contact your system administrator.". I have resolved this by upgrading the system stored procs on the 2000 machine by running instcat.sql, documented in http://support.microsoft.com/default.aspx/kb/906954/en-us . Works great. However, I'm now experiencing the same error when linking from SQL 2005 64-bit to SQL 7. I'm concerned about applying 2000 code onto a SQL 7 machine. Any ideas on how to handle this case Thanks Paul Hi Paul, You can gohead and apply the 2000 code instcat.sql in SQL server 7.0, Upgra ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Simple BreakOut Demo (Source included)
Well there it is, my first ever C# and XNA program I hope it'll help some of you. Download BreakOutDemo.zip v0.31 Thank you MS for that wonderful gift that is the XNA. Nicely Done! I believe that this is the best XNA game in the history of mankind!!! ...the only bad thing about that is someone else will take that title in a day or 2. :) ...Show All
SQL Server HOW TO MODIFY MDX TO RESTRICT MEMBERS IN TIME DIMENSION
There are some 55 members in the arrival year level of the time dimension (1995 - 2055). I am trying to find a way to restrict the number of years returned by this mdx query to the current year - 5. Any help will be appreciated. WITH MEMBER [Measures].[ParameterCaption] AS '[TIME DIMENSION].[ARRIVAL YEAR].CURRENTMEMBER.MEMBER_CAPTION' MEMBER [Measures].[ParameterValue] AS '[TIME DIMENSION].[ARRIVAL YEAR].CURRENTMEMBER.UNIQUENAME' MEMBER [Measures].[ParameterLevel] AS '[TIME DIMENSION].[ARRIVAL YEAR].CURRENTMEMBER.LEVEL.ORDINAL' SELECT { [Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel] } ON COLUMNS, [TIME DIMENSION].[ARRIVAL YEAR].allmembers ON ROWS FROM [TOURISM CUBE] Thanks ...Show All
Windows Forms Clicking between forms
Hi, I' ve got two forms with buttons on both. I need to switch when I want between the forms. Now when I click on a button of another form. The Form gets first the focus. Then I need to click once more for the button_event. Is there a way to click just one time Grtz Annihil8 Well I'll try to make a little drawing :) [Frm_parent (Maximized ) ] | | | [Frm_child ] | | | Hasgotfocus | | | | | [button on Frm_parent] | | -------------------- ...Show All
Visual C++ Which way should I go? C++ or C#
I'm about to start developing a windows application which is currently in VB6 using an Access database. Which route should I take language wise, c++ or c# and what's the difference There are no substantial performance differences between VB.NET, C#, and C++/CLI. If you're comfortable with VB, just upgrade to VB.NET. If you have a C++ background, you might want to check out C++/CLI - it's a nice language and if you stick to managed code it's nearly as simple as C#. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter, VB to C++ converter Instant Python: VB to Python converter ...Show All
SQL Server After an insert, how do I get the primary key of the new row?
I am using C# and ADO.NET After executing an INSERT, I would like to retrieve the primary key of the last row inserted. I've tried running SELECT @@IDENTITY in a query, but I get an OleDbException with the message: {"Syntax error. in query expression 'SELECT @@IDENTITY'."}. does anyone know what to do Hi You can use DataTables and DataAdapter to make insertion in the database after the insertion into the database the DataAdapter retrive the values from database for automatically. You have to use CommandBuilder for this purpose. Make changes to the DataTable and then run UpdateDataBase method on that table of the DataAdaper..check MSDN for details. Or you can create Stord procedure to Ins ...Show All
.NET Development XML socket problem? (C#)
Hi all, I tired create a XML Socket with using c#. My problem is display Exception : System.IO.IOException: Unable to read data from the transport connection: WSACancelBlockingCall ---> System.Net.Sockets.SocketException: WSACancelBlockingCall with my receive Function. Whether because my server is java I sure i can connect server, server and client is using the same port. I guess it is because time out How to fix the problem. Below is my codeing. Please somebody help me. codeing NetworkStream ns; StreamReader sr; TcpClient clientsocket; bool connected; Thread receive; string serveraddress = "127.0.0.1"; int serverport = 4002; private void Connect() { socketConnection(); if (connected) { receive = new Thread(new ThreadStart( r ...Show All
