I have a C++ project that creates an OCX file which contains multiple functions I call from VB. I added a parameter to one of the functions in the C++ side, rebuild the ocx, re-registered it, but the VB side does not see the new parameter (I get a compile error). If I look at the ocx in OLEView...
I have over 100 values in the enumeration, so using ifs or case statements is not practical.
I will have to rethink my code to find a better way to get the desired result.
It's a shame C can't handle things like that....
I have an enumerated type such as
enum Colors(Red, Blue, Green);
and a CString test_string = "Blue"
How do I get to the 2nd value in the enumerated type by the string?
What I am trying to get to is:
int retValue = Colors(test_string);
or something like that that will produce retValue = 1
Turns out I did not have issues with DCOM - the DNS name for the SQL Server computer could not be resolved. After realizing the name was the problem, I went into the hosts file (in the windows\system32\drivers\etc directory) and added the ip address and name of the system I was trying to connect...
After realizing the DNS name was the problem, I went into the hosts file (in the windows\system32\drivers\etc directory) and added the ip address and name of the system I was trying to connect to with SQL Server. Now that it is in the hosts file, the system is fast again and no more DCOM errors!
I have not found a solution, but a work-around is to log into SSMS with the IP address instead of the name. It works just as fast now as it used to. I still get the DCOM errors, but at least I can work again.
I had to uninstall then reinstall my NIC to resolve connection to a remote desktop. After the reinstall, I am now getting DCOM errors when I try to connect to my sql server.
"DCOM was unable to communicate with the computer APPL2900 using any of the configured protocols."
How do I correct...
I looked in the event log, but there were no hardware entries. However, I found that I am getting DCOM errors trying to communicate with the sql server I am accessing.
I will now redirect my efforts into tying to correct my DCOM issues. Thanks for the advice.
I am not sure if this is the correct location for this or not.
This is a bit of a long-winded story. I started out having issues connecting through a VPN using RDC to my computer at my office from the computer at my client's site. I determined it was specific to the computer at mu client's...
I have corrected the problem of getting the RDC working by uninstalling and then reinstalling my network card (lots of googling found that solution). While now I can connect, my connections to Outlook on our exchange server and SQL Server SSMS are now painfully slow. Does anyone know what I can...
I am not in our corporate office, so I don't have direct access to the VPN setup. What kind of information would I need to determine if the VPN is trying to NAT the address (and which address, the computer I am running on?)
All firewalls on the PC are turned off. What kind of information do I need to provide about the VPN? Why would the VPN appear to be running and work with other PCs but not this one when I have set them up the same way?
It is our corporate VPN server - I don't know the details of what it exactly is. I put in a URL when I set up the connection. This connection works on all other computers, and appears to be connected on the one having issues. I cannot ping any IP addresses on my corporate network from the...
I have been trying to connect to a remote desktop connection through a VPN. I am at a client's site trying to connect to my desktop at my office. I can connect from home just fine, so I know the remote desktop settings on the host machine are correct. The problem comes in at this client site. On...
You can put the SecurityNumber of frm1 as a hidden field. The user cannot see it but it is available to you to use. You would set it up just like the AgentName, but set its visible property to false.
Look up the DateDiff function - the number of days would look something like
Days_Between = DateDiff ("d", date1, date2)
where date1 and date2 are your determined dates.
I have a subform in datasheet view that holds alot of records. Before we went to SQL Server for the backend, the user could see the records as they scrolled through, but now they cannot. Since I can't seem to find a way to have the same results, it would be ok to show record information on the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.