As per ur suggestion i use create databse command and i able to create Database ,now i want to create Table in that database and i am using create table command bt it give an error message IDispatch error #3092 ,code: 0x80040e14 ,source :Microsoft OLEDB provider for sql server ,Description: There is already an object named 'myatble' in the database. Bt there is no table present in the database with name myTable. Pls help me regarding this.
aaaan
Posts
-
Creating SQL Database .mdf file using MFC , VC++ ? -
Creating Module in Ms Access DatabaseHi! I m working on a Access project in which i want to create and execute a module programiticaly in VC++. I also try to use OLE function of Access bt in the Access class there is no function to create module. How i can do this. Pls help me...regrading this. _ ansh
-
How to disable mouse click in HTML view [modified]Hi! I m trying to view a MS Word *.Doc File in HTML view in VC++,by using Navigate2() function of CHtml view class. But the problem is that when the File viewed on HTML view all controls work,means i can right click on it,save this file by using F12 key ,open its help by pressing F1 key and all the other control. I just want to stop(disable) the working of these control. If i do EnableWindow(FALSE),it not only stop the working bt also stop the scrolling. I just want to stop the working of *.doc controls. Raj -- modified at 6:33 Wednesday 24th October, 2007
-
How Copy TCHAR* Buff into CString Variableya I know it is not possible directly to CString variable. Bt i able to forcefully insert the raw data in CString variable taking data in a loop up to its length but it creats problem wn the length of data is very large i.e. more tn 1000 because running loop up to this limit creats problem of hanging.I want to solve this problem. if any soln pls help me.
-
How Copy TCHAR* Buff into CString Variableya i m unable to store data like CString str = "Now\0\0\0\0\0is\0\0\0\0the\0time\0for\0all..."
-
Error in open() function in CDaoDatabase class of MFC-> Unhandled exception in myProject.exe(DAO360.DLL):0xc0000005:AccesslpszName the path of the mdb file is displayed and the lpszConnect stores 0. Ansh
-
Error in open() function in CDaoDatabase class of MFC-> Unhandled exception in myProject.exe(DAO360.DLL):0xc0000005:Accessi use try wrapping method bt it unale to track the error. Acctually wn i debug my program and track all steps then i watch that wn the open function of CDaoDatabase class is called like this-> void CDaoDatabase::Open(LPCTSTR lpszName, BOOL bExclusive, BOOL bReadOnly, LPCTSTR lpszConnect) { ---- ---- DAO_CHECK(m_pWorkspace->m_pDAOWorkspace->OpenDatabase( V_BSTR(&var), COleVariant((long)bExclusive, VT_BOOL), COleVariant((long)bReadOnly, VT_BOOL), COleVariant(lpszConnect, VT_BSTRT), &m_pDAODatabase)); } and wn the function DAO_CHECK is called it through the exceptions. Ansh
-
Error in open() function in CDaoDatabase class of MFC-> Unhandled exception in myProject.exe(DAO360.DLL):0xc0000005:AccessHi! I m working on a database project in which i use CDaoDatabase class of MFC to create the connection with a Access .mdb file by using its open() function. and then use CDaoQueryDef class to save the query in the database. It works well when I run my program first time for a database but if I select the another or same Access .mdb file without closing the exe of my project it give error in its open function. the error msg is somthing like this-> Unhandled exception in myProject.exe(DAO360.DLL):0xc0000005:Access violation. Pls help me to solve this problem as early as possible. Ansh
-
Creating Access Data Project(ADP) fileHi! I want to create Microsoft Access Data Project(ADP)File through program in VC++. Actually I have some Raw Data Which i get From the another Access File and now i want to create ADP file by using that RAW Data. Actually i get a function in Access Application Class. application.NewAccessProject(filepath, Connect). this funcation create an empty adp file. But the problem is that I want to create an ADP file by passing some raw data which I get from another file and the function written above does't have any paramete which may take RAW data. Is there any other way to create the adp file in which I can pass the raw data as an paramater. or is there any other way to do so. Ansh
-
How Copy TCHAR* Buff into CString VariableHi! All I want to copy Some data which is stroed in TChar Buff in to a CString Variable. How i do this. The TChar Buff has Raw data in which there are number of zeros present between raw data Ansh
-
how to lunch 32 bit exe from 64 bit processOS crash happening with blue screen. tutu
-
how to lunch 32 bit exe from 64 bit processhi I am writting a application in 64 bit OS from which i want to lunch a 32 bit exe. but i do not know how to lunch a 32 bit exe in 64 bit process with commandline argument. I just tried using CreateProcess api but it is crashing at the time of lunching.So can any body help me regarding this.its urgent. Thanks tutu
-
List View not working at Window 98Hi Everybody! I m working on a VC++ application in which i m creating a SDI application. IN this application I create a list Ctrl on CView at run time to show the data.The part of the code which i use to create the list on the CView at run time is void CMyApplicationView::ShowListView() { if(p_ListView == NULL) { p_ListView = new CMyListView; CRect rect; GetClientRect(rect); p_ListView->Create(NULL, NULL, LVS_EX_GRIDLINES|WS_CHILD|WS_VISIBLE, rect, this, 1012, NULL); CFont *SimpleFont = new CFont; CDC *dc = GetDC(); int size = 12; CString FaceName = "Times New Roman"; SimpleFont->CreatePointFont(size*10,FaceName,dc); CListCtrl& MyCtrl = p_ListView->GetListCtrl(); MyCtrl.GetHeaderCtrl()->SetFont(SimpleFont); MyCtrl.SetExtendedStyle(LVS_EX_GRIDLINES|LVS_EX_FULLROWSELECT); delete SimpleFont; p_ListView->ShowWindow(WS_MAXIMIZE); } } This code is working properly on all the OS except 98. In win 98 the ListView is not show in the Right pane of my application window. Pls help me so that this code also works in Window 98. Ansh
-
SendMessageThanks Nibu thomas But my problem is i do not want to broadcast. I only want to send message to those perticular window.So please give me some idea regarding this. tunu
-
SendMessageHi i want to send a message to multiple windows,those window have same caption name. is there any way to send a perticular message to those windows only.firstly i wanted to use FindWindow then using their handle i will send message, but all those window have same caption. Can any one help me please. tunu
-
hi unicode problemHi friends can any one please tell me how to convert string data from utf-8 to unicode 16 bit format? i need it ,its very urgent. Thanx tunu
-
activex control not working in a dllHi All! When in a simple project, I add a control activeX in a dialogue box it work perfectly, however when i make the dialog box (containing the activeX) in a dll (MFC DLL), i get nothing (no dialog box and consequently no activeX). When i remove the activeX control, the dialog box can be displayed! my question is so how to add a activex control in a dll? Thank u in advance. Nirmal
-
how i create Dll of ActiveX Control ProjectIn my ActiveX Control Project i simply use an ActiveX Check Box. and when i use The Dll of this project in my another project in which i call the Interface of ActiveX Control Project on ok event of my project that interface is not view. Bt if i remove the ActiveX Check Box from the ActiveX Control Project and make DLL of it and use it in my new project it works well.... So i just want to know how I use DLL with ActiveX Control.
-
how i create Dll of ActiveX Control ProjectIn my ActiveX Control Project i simply use an ActiveX Check Box. and when i use The Dll of this project in my another project in which i call the Interface of ActiveX Control Project on ok event of my project that interface is not view. Bt if i remove the ActiveX Check Box from the ActiveX Control Project and make DLL of it and use it in my new project it works well.... So i just want to know how I use DLL with ActiveX Control.
-
how i create Dll of ActiveX Control ProjectHi All! I m trying to create the DLL of my VC++ project. My project is a dialog Based project at which i use ActiveX control when i m make the Dll of this project it not work.If i remove ActiveX control from the Dialog Box Dll work prperly. Pls tell me how i create Dll without deleting the ActiveX control.... of my project. ansh